spatial-math

3d math including quaternions/euler angles/dcms and utility functions

Version on this page:0.5.0.1
LTS Haskell 12.23:0.5.0.1
Stackage Nightly 2018-09-28:0.5.0.1
Latest on Hackage:0.5.0.1

See all snapshots spatial-math appears in

BSD3 licensed by Greg Horn
Maintained by gregmainland@gmail.com

Module documentation for 0.5.0.1

spatial-math

Hackage Build Status

3d math including quaternions/euler angles/dcms and utility functions.

This is a port of my ‘mathlib’ C library: https://github.com/ghorn/mathlib and may someday be merged with it.

Changes

0.5.0.1
- Fix doctest include path.

0.5.0
- Replace calls to Prelude's `atan2` function with calls to the C math
library in `ArcTan2` instances for `Float` and `Double`

0.4.0
- Switch quat2dcm mode to avoid divide by 0, add Ord constraint

0.2.0
- convert to using `linear` V3, M33, Quaternion types
- doctests
- fix long unknown bug: rotateXyzAbout{X,Y,Z} was rotating opposite direction from intended

0.2.1.1
- Serialize a => Serialize (Euler a)

0.2.1.2
- Binary a => Binary (Euler a)

0.2.2
- add Ord instances

0.2.5
- instance Applicative Euler
- specialized dcmOfEuler321 without Ord constraint

0.2.6
- use ArcTan2 instead of RealFloat
- unsafe specialized euler321OrDcm without Ord constraint
- primitive implementation of quatOfDcm
comments powered byDisqus