/cmmt

Common mathematics library, C99 GLM alternative (vector, matrix, quaternion, camera, bounding, color)

Primary LanguageCApache License 2.0Apache-2.0

Successor ----> Math

CMMT CI

A library providing common mathematics functions: vectors, matrices, quaternions, etc.

Features

  • 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)

Build requirements

CMake options

Name Description Default value
CMMT_USE_INT64 Use double precision integers OFF
CMMT_USE_FLOAT64 Use double precision floats OFF

Cloning

git clone https://github.com/cfnptr/cmmt

Examples

You can find usage examples in source code of the MPGX library.