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

NOTE: the latest version is 2.0.3

Geometry.Interop.LinearAlgebra.Vector2d

Conversion functions for Vector2d.

toVec2 : Vector2d units coordinates -> Vec2

Convert a Vector2d to a Vec2.

Vector2d.toVec2 (Vector2d.meters 2 3)
--> vec2 2 3
fromVec2 : Vec2 -> Vector2d units coordinates

Convert a Vec2 to a Vector2d.

Vector2d.fromVec2 (vec2 2 3)
--> Vector2d.unsafe { x = 2, y = 3 }