ianmackenzie / elm-geometry

2D/3D geometry package for Elm
Mozilla Public License 2.0
183 stars 26 forks source link

Add angle-between-three-points function #149

Open ianmackenzie opened 3 years ago

ianmackenzie commented 3 years ago

Something like

Point2d.angleFrom :
    Point2d units coordinates
    -> Point2d units coordinates
    -> Point2d units coordinates
    -> Angle

and maybe also

Point3d.angleFrom :
    Point3d units coordinates
    -> Point3d units coordinates
    -> Point3d units coordinates
    -> Angle

where you give the start point, corner point and end point in order.