#matrix-vector #dual-quaternion #rational-numbers #spline #transformation #quaternions

bin+lib maph

Maths package for use with personal stuff, but like, you can totally use it! If you want! There's even some light documentation now!

32 releases (4 breaking)

0.8.1 May 11, 2023
0.8.0 May 11, 2023
0.7.25 Mar 25, 2023
0.7.11 Apr 25, 2023
0.1.3 Jan 22, 2023

#1571 in Math

Download history 87/week @ 2024-07-23 51/week @ 2024-07-30 37/week @ 2024-09-24

107 downloads per month

MIT license

7.5MB
4K SLoC

Maph

Overview

Maph is a personal library I've developed mostly for use with computer graphics, although I ended up including a number of components unrelated to this, mostly for fun! Right now there's three major components.

  • maph::geom - a geometry library with generic matrix and vector types as well as implementing Quaternions and Dual Quaternions and several other helper functions for calculating transformations. This also has a quadratic spline type based on a 4x4 spline matrix.
  • maph::num - a numerical library that implements its own rational number type, a number of handy factorisaton helper functions and surds, for no real good reason except that I could.
  • maph::cg, a short library using bytemuck to easily convert the matrix and vector types from the geometry library into repr(C) useable types for rendering.

Dependencies