package geoml
Geoml: 2D Geometry library for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
0.1.1.tar.gz
md5=37ca15d64a035762d12c4bd7064a1841
sha512=109d7597bd2a8d6628b4c0ee40cd94066fe09ce565bb35fe10683e5f701c1d058daaec79702b4f5f8ed68eeed444c363ca6070f854bbdfb6d0cd997db0f21408
doc/geoml/Polygon/index.html
Module Polygon
Source
This 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
Source
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).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>