Documentation

Polygon is an array of X,Y coordinates. E.g. [0,0, 1,0, 1,1, 0,1] is a rectangle.

In coordinate system, where X goes right, Y goes up and edges are arrows going from lower to higher indexed vertex, the inner side of polygon is on the left side of arrow.

PolyK functions