spatial-math

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

LTS Haskell 21.25:0.2.7.0
Stackage Nightly 2023-06-21:0.2.7.0
Latest on Hackage:0.5.0.1

See all snapshots spatial-math appears in

BSD-3-Clause licensed by Greg Horn
Maintained by [email protected]
This version can be pinned in stack with:spatial-math-0.5.0.1@sha256:0105f71280b751991f234ed41bb2ee12596d97b1f18e3ae8b9e3324475ca012f,1810

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