Successor ----> Math
A library providing common mathematics functions: vectors, matrices, quaternions, etc.
- Vector (2D / 3D / 4D, float / int / uint /size)
- Matrix (4x4 float)
- Quaternion (float)
- Ray (2D / 3D float)
- Bounding box (2D / 3D float)
- Bounding sphere (2D / 3D float)
- Plane (2D / 3D float)
- Camera (orthographic / perspective float)
- Frustum culling (float)
- Color (float)
- Shadow bias (float)
- C99 compiler
- Git 2.30+
- CMake 3.10+
Name | Description | Default value |
---|---|---|
CMMT_USE_INT64 | Use double precision integers | OFF |
CMMT_USE_FLOAT64 | Use double precision floats | OFF |
git clone https://github.com/cfnptr/cmmt
You can find usage examples in source code of the MPGX library.