#vector #matrix-vector #trajectory #point #2d-3d #matrix

geomath

Stack-allocated maths for geometry, simulation and computer graphics

5 releases

0.2.4 Nov 10, 2021
0.2.3 Jan 24, 2020
0.2.2 Jan 24, 2020
0.2.1 Jan 24, 2020
0.2.0 Jan 24, 2020

#996 in Math

Download history 5/week @ 2024-02-25 3/week @ 2024-03-10 74/week @ 2024-03-31

77 downloads per month

BSD-3-Clause

100KB
2.5K SLoC

geomath

build crates documentation license

Simulation, Graphics, Geometry

Brief

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.

Features

  • 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

Usage

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.

Contribution

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