#math #vector #matrix #trajectory #point


Stack-allocated maths for geometry, simulation and computer graphics

4 releases

0.2.3 Jan 24, 2020
0.2.2 Jan 24, 2020
0.2.1 Jan 24, 2020
0.2.0 Jan 24, 2020

#244 in Math

21 downloads per month


2.5K SLoC


build crates documentation license

Simulation, Graphics, Geometry


A framework that aims to provide a complete 2D-3D-4D maths toolbox for the Rust language.

It's general purpose and exposes a vast and simple API while showing high performance thanks to many optimization that are allowed only in a 2D-3D-4D context.


  • Stack allocated matrices and vectors with common algebra and transforms
  • All common 2D, 3D and 4D transforms (rigid body, rotations, ...)
  • Coordinates manipulation (polar, cylindrical, spherical, ...)
  • Point's kinematics and trajectory representation
  • Documentation and examples


The documentation contains a short introductions for each module to easily get started with the framework.

However if you need examples take a look at :

Why another maths framework

Instead of providing tools only for linear algebra or computer graphics, this framework is made to cover all theses usages at the same time.

It's really made to make maths easier when coding, the goal is to reach the feeling of Matlab and to provide a general purpose 2D, 3D and 4D maths toolbox.

Furthermore, the implementation is the result of the previous optimizations found during the two other math framework that I published on npm meca3 and space3.

It runs very fast and provide an API that shows clearly where computation is expensive so you can adopt the best patterns to reach the desired performance.


The framework still largely incomplete, more features are scheduled to be implemented, some optimizations can still be perform and more unit testing is required.

Any suggestion or issues are welcomed, be free to contribute the geomath project and improve the Rust math experience.

No runtime deps