项目作者: cfnptr

项目描述 :
Common mathematics library
高级语言: C++
项目地址: git://github.com/cfnptr/cmmt.git
创建时间: 2021-02-27T11:35:49Z
项目社区:https://github.com/cfnptr/cmmt

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Successor ——> Math

" class="reference-link">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

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

Examples

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