Delphifunction IsPositive(const pts: TPath64): Boolean;

C++bool IsPositive(const Path64 &poly);

C# public static bool IsPositive(Path64 poly);

This function assesses the winding orientation of closed paths.

Positive winding paths will be oriented in an anti-clockwise direction in Cartesian coordinates (where coordinate values increase when heading rightward and upward). Nevertheless it's common for graphics libraries to use inverted Y-axes (where Y values decrease heading upward). In these libraries, paths with Positive winding will be oriented clockwise.

Note: Self-intersecting polygons have indeterminate orientation since some path segments will commonly wind in opposite directions to other segments.

See Also