Game Math for Me
A math library for video games that allow independent management of data. Just like DirectXMath, data and vectors are divided.
Examples
use Float4;
let a = new;
let s = fill;
let res = a + s;
println!;
or
use Float4;
use Vector;
let a = new;
let s = fill;
let v_a: Vector = a.into;
let v_s: Vector = s.into;
let v_res = v_a + v_s;
let res: Float4 = v_res.into;
println!;
Features
Supports SIMD operations
The gmm library supports SIMD instructions on the x86
, x86_64
and the aarch64
architecture.
Compile Features
bytemuck
- Enables the bytemuck library implementation.mint
- Enables the mint library implementation.scalar-math
- Disable the simd instruction in the library.use-assertion
- Allow panic calls within a function.
License
MIT license (LICENSE or http://opensource.org/licenses/MIT)