Skip to content
← All projects
Project

Dimension (mathlib)

Listen to the audio story

Dimension and its math library · 1:20 · AI-written script, synthetic voices

Transcript

Ava: Every 3D game, physics simulation and data tool leans on the same quiet ingredient: linear algebra. Antoine's Dimension project puts it at the center.

Andrew: Linear algebra. That's the matrices-and-vectors stuff, right?

Ava: Right. The heart of the repository is mathlib, a Rust crate for dense and sparse linear algebra, matrix decompositions, 3D math, clustering, graph algorithms and transforms.

Andrew: Why both dense and sparse?

Ava: A dense matrix stores every number. A sparse one stores only the non-zero entries, like a seating chart that lists just the occupied seats. That saves a lot of space when most of the grid is empty.

Andrew: And it runs in the browser too?

Ava: It does. There are WebAssembly demos, plus optional SIMD and GPU features for speed. The wider Dimension repository wraps the crate with kinematics, physics, rendering experiments and documentation.

Andrew: How would I try it?

Ava: The quickest way is right on the project page: it runs the render, geometry and math demos in your browser, compiled to WebAssembly. To build it yourself, two commands from the mathlib folder: cargo build, then cargo test. The README and the docs folder cover the architecture and examples, and mathlib is published on docs dot r s.

Table of contents

GitHub last commit

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

Live demo

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.

Open in a new tab

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.