package geoml
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
This module provides basic functions for any concave, convex and convex regular polygon (Does not handle complex polygon and polygon with holes)
type t = private Point.t list
type polygon = t
Same function as List.fold_left
but on segments of a given polygon
Same function as fold
but filters segments with the first argument
val perimeter : t -> float
val area : t -> float
val proj_x : t -> float * float
val proj_y : t -> float * float
val minmax_xy : t -> float * float * float * float
returns the intersection point of a line and a polygon
Returns true if a polygon contains a point. Randolph Franklin code for raycasting
val segments_intersection_points :
Point.t list Segment.Tbl.t ->
t ->
t ->
Point.t list
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).
module Convex : sig ... end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>