ianmackenzie/elm-geometry-linear-algebra-interop - version: 2.0.3

for more information visit the package's GitHub page

Package contains the following modules:

elm-geometry-linear-algebra-interop

This package supports interop between ianmackenzie/elm-geometry and elm-explorations/linear-algebra. You can:

This is important for working with WebGL, since the elm-explorations/webgl package requires using linear-algebra types when defining meshes and shaders. This package may also be useful when using other packages that accept or return linear-algebra types. However, you shouldn't need this package for general use - you should be able to do most geometric transformations you need (rotations, translations etc.) using elm-geometry itself.

Installation

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

Documentation

Full API documentation is available.

Usage details

The modules in this package are all designed to be imported using as to 'merge' them with the base elm-geometry modules; for example, using

import Point3d exposing (Point3d)
import Geometry.Interop.LinearAlgebra.Point3d as Point3d

will let you use functions from both modules as if they were part of one big Point3d module. For example, you could use the toVec3 function from this package's Point3d module with the origin value from the base Point3d module as if they were part of the same module:

Point3d.toVec3 Point3d.origin
--> Math.Vector3.vec3 0 0 0

Questions? Comments?

Please open a new issue if you run into a bug, if any documentation is missing/incorrect/confusing, or if there's a new feature that you would find useful. For general questions about using this package, try:

Have fun, and don't be afraid to ask for help!