Table of contents
Repository · mathlib on docs.rs
mathlib is a Rust crate for dense and sparse linear algebra, decompositions, 3D math, clustering, graph algorithms, transforms, and more—with WebAssembly demos and optional SIMD / GPU features. The Dimension repo wraps that crate alongside kinematics, physics, rendering experiments, and documentation.
Live demos
Dimension running in your browser
A cube, a tetrahedron and a cylinder drawn by the wgpu renderer, with a transform gizmo and object picking.
Loads from antoinebou12.github.io only when you press start. WebAssembly; the 3D demos need a browser with WebGPU.
The repository also publishes a kinematics demo (a three-joint arm solved with inverse kinematics) and a physics demo (rigid bodies with XPBD). Both need a browser with WebGPU and open in their own tab.
Quick start
cd mathlib && cargo build
cd mathlib && cargo test
See the root README and docs/DOCS.md for architecture and examples.