spatial-math

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

Version on this page:0.2.7.0
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.2.7.0@sha256:81572949048611a807c0bbdc6fe50d084124448529b348a9663b8b855848e4bb,1720

Module documentation for 0.2.7.0

Used by 2 packages in nightly-2023-01-22(full list with versions):

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.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