where the endpoints are defined as and . The alternating signs of terms can be found from
the diagram above, which illustrates the origin of the term "shoelace formula."

Note that the area of a convex polygon is defined to be positive if the points
are arranged in a counterclockwise order and negative
if they are in clockwise order (Beyer 1987).