ianmackenzie/elm-geometry-linear-algebra-interop/1.0.2

NOTE: the latest version is 2.0.3

Geometry.Interop.LinearAlgebra.Direction2d

Conversion functions for Direction2d.

toVec2 : Direction2d -> Vec2

Convert a Direction2d to a Vec2.

Direction2d.toVec2 Direction2d.x
--> vec2 1 0