1.3.0
Pre-release
Pre-release
elm-geometry
1.3.0 is out! This is a minor release with a few nice additions, all contributed by the community:
expandBy
andoffsetBy
functions forBoundingBox2d
andBoundingBox3d
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 aMaybe
to handle the case where the bounding box contracts to nothing.) Thanks @MrL1605!midpoint
functions forQuadraticSpline2d
,QuadraticSpline3d
,CubicSpline2d
andCubicSpline3d
as a convenient way to find the point half way along a spline by arc length (not parameter value). Thanks @MrL1605!centroid
functions forPolyline2d
andPolyline3d
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!