Geometry determining the exterior angles of a polygon