#physics-simulation #quaternions #dual #3d #matrix #vec3

dualquat

Quaternion and Dual Quaternion math library for high-precision physics simulation

4 releases

0.1.3 Jan 15, 2023
0.1.2 Jan 12, 2023
0.1.1 Oct 23, 2022
0.1.0 Oct 21, 2022

#1101 in Math

28 downloads per month

MIT/Apache

54KB
1.5K SLoC

dualquat

A lightweight, zero-dependency 3d math library for use in Dual Quaternion based physics simulation. Capable of representing and transforming location and attitude simultaneously, in fewer operations than would be required for a transformation matrix.

Features

  • DualQuaternion type
  • DualNumber type
  • Quaternion type
  • Vec3 type

Optional features

  • [nanoserde, serde, speedy] - Serialization of all types
  • [glam, nalgebra, mint] - Conversion to/from equivalent types for interop

Development status

This is being actively worked on. PRs will be accepted for either more tests or functionality.

TODO

  • Use approx for tests
  • Benchmarks

Dependencies

~0–1.5MB
~40K SLoC