OpenMaths
OpenMaths is a mathematical library designed for graphical applications in Rust and OpenGeometry. It provides essential mathematical structures and operations, including vectors, matrices, and more, to facilitate complex calculations in graphics programming.
Features
- Vector3: A 3D vector structure with basic operations.
- Matrix3: A 3x3 matrix structure for transformations and calculations.
- Matrix4: A 4x4 matrix structure for 3D transformations and projections.
Development
- Language: Rust
- License: MIT License
Usage
To use the OpenMaths library in your Rust project, add the following dependency to your Cargo.toml
file:
[]
= "0.2.1"
Example
Here is a simple example of how to use the Vector3
and Matrix3
structures in your Rust application:
use ;
This example demonstrates how to create a Vector3
, perform operations on it, and create a Matrix3
with basic operations.
Building and Running
To build and run the OpenMaths library, follow these steps:
- Clone the repository
- Navigate to the project directory
- Build the project
- We also compile to WebAssembly (WASM) for use in web applications