Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Polygon
SourceThis module provides basic functions for any concave, convex and convex regular polygon (Does not handle complex polygon and polygon with holes)
Same function as List.fold_left
but on segments of a given polygon
val fold_filter :
(Point.t -> Point.t -> bool) ->
('b -> Point.t -> Point.t -> 'b) ->
'b ->
t ->
'b
Same function as fold
but filters segments with the first argument
returns the intersection point of a line and a polygon
Returns true if a polygon contains a point. Randolph Franklin code for raycasting
Get a list of the intersections points of the edges of two polygons
Implementation of Weiler Atherton Algorithm for concave/convexe polygons clipping. Complexity is O(m*n).