elm-geometry icon indicating copy to clipboard operation
elm-geometry copied to clipboard

2D/3D geometry package for Elm

Results 51 elm-geometry issues
Sort by recently updated
recently updated
newest added

I've added `Axis2d.intersectionPoint`, `Axis2d.fromLineSegment`, and `QuadraticSpline2d.nearestPoint`. I've only written tests for `Axis2d.intersectionPoint`. I don't think `Axis2d.fromLineSegment` needs any. `QuadraticSpline2d.nearestPoint` definately does but I ran out of energy before I got...

Basically the title, shapes are black with a transparent background, which makes them invisible in dark mode:

I can attempt some tests later on... Not really sure how to effectively fuzz Random generators, but it seems like there might be some reasonable properties to check for here....

This is an API sketch for addressing #79. Obviously a full implementation needs: - [ ] A few more functions like rotation, mirror, etc. - [ ] An `apply` function...

Useful for 2D drawing but also potentially for 3D graphics (create in 2D then place in 3D). Something like: ```elm Triangle2d.arrowhead : { tip : Point2d units coordinates , direction...

e.g. ```elm Frame3d.fromXySketchPlane : SketchPlane3d units coordinates defines1 -> Frame3d units coordinates defines2 ```

Implemented intersection of a ray with rectangle. I had to inline plane construction because of circular dependency. Any idea on how this can be tested? I can add hardcoded test...

Something like ```elm Point2d.weightedCentroid : List ( Point2d units coordinates, Quantity Float weightUnits ) -> Maybe (Point2d units coordinates) ``` and similar for `Point3d`.

Component units don't actually need to match frame/sketch plane units since the origin point is not used (only the basis directions, which are unitless). Match the style of `Vector2d.mirrorAcross` which...

breaking change

Something like ```elm Point2d.angleFrom : Point2d units coordinates -> Point2d units coordinates -> Point2d units coordinates -> Angle ``` and maybe also ```elm Point3d.angleFrom : Point3d units coordinates -> Point3d...