I found myself needing to create an Axis2d from a pair of points in order to mirror a triangle across that axis. It was quick to implement myself, just
throughPoints : Point2d units coordinates -> Point2d units coordinates -> Maybe (Axis2d units coordinates)
throughPoints p0 p1 =
Direction2d.from p0 p1 |> Maybe.map (Axis2d.through p0)
but such a function seems useful enough to include even if it's simple.
I found myself needing to create an Axis2d from a pair of points in order to mirror a triangle across that axis. It was quick to implement myself, just
but such a function seems useful enough to include even if it's simple.