Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JungerBoyo/zmath
simple linear algebra library written in zig
https://github.com/JungerBoyo/zmath
linear-algebra-library math zig
Last synced: 3 months ago
JSON representation
simple linear algebra library written in zig
- Host: GitHub
- URL: https://github.com/JungerBoyo/zmath
- Owner: JungerBoyo
- License: mit
- Created: 2022-09-28T13:57:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-02T15:07:21.000Z (over 1 year ago)
- Last Synced: 2024-05-13T00:16:07.043Z (6 months ago)
- Topics: linear-algebra-library, math, zig
- Language: Zig
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - JungerBoyo/zmath
README
# zmath
simple linear algebra library written in zig.
## implements
- Vec{2, 3, 4}x{{f, i, u}x{32, 64}}
> dot product, cross product, {+, -, *, /} ops
- Mat{2x2, 3x3, 4x4}x{{f, i, u}x{32, 64}}
> determinant, inverse (without det==0 test), transpose, mul op
- Mat4x4{f32, f64}
> init from unit quaternion, init as rotation from euler angles, projection
- Quaternion{f32, f64}
> mul op, init from 3d vector and angle
- transforms{f32, f64}
> 3d point rotation