Overview
munum is a minimalistic numerical library for high-performance 3D math. This is a pure Rust no_std compatible port of the JavaScript / AssemblyScript version of munum: https://github.com/andykswong/munum
Install
[]
= "0.1.0"
Features:
std- enabled by default.libm- can be used instead ofstdto enable trigonometry related functions inno_stdenvironmentserde- enableserdeserialize/deserialize implementations
Documentation
See Docs.rs: https://docs.rs/munum
Usage
Sample usage to build a perspective camera view-projection matrix:
use ;
use ;
let eye = vec3;
let target = vec3;
let up = vec3;
let view = look_at;
let proj = perspective;
let view_proj = proj * view;
License
This repository and the code inside it is licensed under the MIT License. Read LICENSE for more information.