| Crates.io | vmm |
| lib.rs | vmm |
| version | 0.2.1 |
| created_at | 2024-01-08 18:22:30.58407+00 |
| updated_at | 2025-01-19 19:14:54.434166+00 |
| description | A math library focused on vectors and square matrices (Not in development) |
| homepage | |
| repository | https://github.com/Cunha-Renato/vmm |
| max_upload_size | |
| id | 1092847 |
| size | 68,890 |
I bit more than I could chew, and I was not smart enough to keep going.
Maybe in the future I will revisit this one, but for now just stick with
nalgebra or cgmath.
vmm is a Rust crate that provides a collection of types and utilities for mathematical operations, specifically tailored for vectors and matrices. The library is designed to be generic, allowing users to work with vectors and square matrices of different dimensions and element types.
T with a fixed size.T with fixed dimensions.
// Creating a 2D vector
let vector_2d = Vec2::<i32>::new();
let vec_2d = vec2![1.0, 2.0];
// Creating a 3x3 matrix
let mat_3x3 = Mat3::<i32>::new();
let matrix_3x3 = mat3_raw![[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]];
// Performing vector operations
let dot_product = vec3![1.0, 2.0, 3.0].dot(&vec3![4.0, 5.0, 6.0]);