Skip to content

Releases: eweitnauer/geom.js

1.0.4

22 Jun 19:08
Compare
Choose a tag to compare

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

02 Mar 19:03
Compare
Choose a tag to compare

Added new methods:

  • Point.intersect_inner_ray_with_rect
  • Circle.prototype.intersect_with_ray
  • Point.prototoype.get_perpendicular

1.0.2

04 Nov 14:44
Compare
Choose a tag to compare
  • 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

16 Oct 21:15
Compare
Choose a tag to compare

Fixed build order, library is now working.

1.0.0

16 Oct 20:41
Compare
Choose a tag to compare

Initial release.