Skip to content

1.3.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ianmackenzie ianmackenzie released this 18 Apr 00:58

elm-geometry 1.3.0 is out! This is a minor release with a few nice additions, all contributed by the community:

  • expandBy and offsetBy functions for BoundingBox2d and BoundingBox3d to allow expanding or contracting bounding boxes. (The former only ever expands, and returns a plain bounding box; the latter also supports contraction but returns a Maybe to handle the case where the bounding box contracts to nothing.) Thanks @MrL1605!
  • midpoint functions for QuadraticSpline2d, QuadraticSpline3d, CubicSpline2d and CubicSpline3d as a convenient way to find the point half way along a spline by arc length (not parameter value). Thanks @MrL1605!
  • centroid functions for Polyline2d and Polyline3d to find the center of mass of a polyline. Thanks @davcamer!
  • Polygon2d.contains to check whether a given point is contained within a given polygon. Thanks @gampleman!