Module polygon

Module polygon 

Source

Structs§

Polygon
Represents an arbitrary polygon with coordinates of type T

Functions§

create_mono_polygon
Creates a monotone polygon from a set of points using a custom comparison function
create_xmono_polygon
Creates an x-monotone polygon from a set of points
create_ymono_polygon
Creates a y-monotone polygon from a set of points
point_in_polygon
Determines if a point is inside a polygon using the winding number algorithm
polygon_is_anticlockwise
Determines if a polygon represented by points is oriented anticlockwise
polygon_is_monotone
Checks if a polygon is monotone in a given direction
polygon_is_xmonotone
Checks if a polygon is x-monotone
polygon_is_ymonotone
Checks if a polygon is y-monotone