isPolygonComplex

Returns true if the polygon is complex (self intersecting) Simple bruteforce method, O(n²) complexity

pure
bool
isPolygonComplex
(
in vec2f[] polygon
)

Meta