Smaller build of the library available geom-tiny.min.js
, which excludes parsing polygons from SVG, convex decomposition, fuzzy spatial relationships, vectors, and matrices.
New methods (contribution from https://github.com/roonsyTunes):
Point.intersect_segments(a, b, c, d)
Point.intersect_seg_with_rect(a, b, ul, lr)
Point.prototype.is_inside_rect(ul, lr)
Polygon.prototype.contains_point(p)
Polygon.prototype.intersects_with_rect(ul, lr)