Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
/ cmmt Public archive

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

License

Notifications You must be signed in to change notification settings

cfnptr/cmmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.