Releases: eweitnauer/geom.js
Releases · eweitnauer/geom.js
1.0.4
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)
1.0.3
Added new methods:
- Point.intersect_inner_ray_with_rect
- Circle.prototype.intersect_with_ray
- Point.prototoype.get_perpendicular
1.0.2
- added fromSVGCircle constructor method to Circle class
- Polygon.centroid() will now return the center of the bounding box for non-closed and for zero-area polygons. Before it returned the average point position for zero-area polygons and used the standard algorithm for non-closed polygons.
1.0.1
Fixed build order, library is now working.
1.0.0
Initial release.