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

2D/3D geometry package for Elm

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

This is an odd one. I've built this the simplest, dumbest way possible just to get something out of the door (I happen to need this for my elm-europe talk)....

When drawing svg it is often the case that we want to draw smooth lines using Bezier curves. It would really be handy with a function to convert a polyline...

elm-test 0.19.0-beta10 ---------------------- Running 184 tests. To reproduce these results, run: elm-test --fuzz 100 --seed 335143298520898 /Users/dave/code/elm-geometry/tests/Tests/Arc2d.elm /Users/dave/code/elm-geometry/tests/Tests/Arc3d.elm /Users/dave/code/elm-geometry/tests/Tests/Axis2d.elm /Users/dave/code/elm-geometry/tests/Tests/Axis3d.elm /Users/dave/code/elm-geometry/tests/Tests/BoundingBox2d.elm /Users/dave/code/elm-geometry/tests/Tests/BoundingBox3d.elm /Users/dave/code/elm-geometry/tests/Tests/Circle2d.elm /Users/dave/code/elm-geometry/tests/Tests/Circle3d.elm /Users/dave/code/elm-geometry/tests/Tests/CubicSpline2d.elm /Users/dave/code/elm-geometry/tests/Tests/CubicSpline3d.elm /Users/dave/code/elm-geometry/tests/Tests/DelaunayTriangulation2d.elm /Users/dave/code/elm-geometry/tests/Tests/Direction2d.elm /Users/dave/code/elm-geometry/tests/Tests/Direction3d.elm /Users/dave/code/elm-geometry/tests/Tests/EllipticalArc2d.elm...

For efficient composite transformations: ```elm module Transformation3d translateBy : Vector3d -> Transformation3d rotateAround : Axis3d -> Float -> Transformation3d mirrorAcross : Plane3d -> Transformation3d sequence : List Transformation3d -> Transformation3d...

question

The current conservative implementation simply takes the bounding box of all control points; this is guaranteed to contain the spline but will in general not be a _tight_ bounding box...

Union, intersection, difference Possible resources: - http://www.cs.ucr.edu/~vbz/cs230papers/martinez_boolean.pdf - https://www.sciencedirect.com/science/article/pii/S0965997813000379 (newer paper by the same authors)

- Coordinate systems are right handed - Positive rotation angle means counterclockwise - Polar angle measured from positive X towards positive Y (0 degrees is positive X)

I think many `elm-geometry` functions could be more easily explained with an image or two instead of looking at a bunch of numerical text output. For example, the current documentation...

documentation

Alternatively `elm-geometry-extensions` or `elm-geometry-experiments`: - Add new experimental modules - Add new experimental functions to existing modules by having (for example) `Point3d.Extensions` that can be used as `import Point3d.Extensions as...

Primarily for use in README