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

NOTE: this package is not compatible with Elm 0.19.1

Geometry.Interop.LinearAlgebra.Point2d

Conversion functions for Point2d.

toVec2 : Point2d -> Vec2

Convert a Point2d to a Vec2.

Point2d.toVec2 (Point2d.fromCoordinates ( 2, 3 ))
--> vec2 2 3
fromVec2 : Vec2 -> Point2d

Convert a Vec2 to a Point2d.

Point2d.fromVec2 (vec2 2 3)
--> Point2d.fromCoordinates ( 2, 3 )