#matrix-vector #rational-numbers #spline #transformation #quaternions #geometry

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

#10 in #spline

Download history 1/week @ 2024-02-20 3/week @ 2024-02-27 1/week @ 2024-03-05 5/week @ 2024-03-12 34/week @ 2024-03-26 168/week @ 2024-04-02

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