Skip to content
/ cpml Public

Cirno's Perfect Math Library: Just about everything you need for 2D/3D games. Hopefully.

License

Notifications You must be signed in to change notification settings

excessive/cpml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

eb209f6 · May 7, 2022
Jun 23, 2021
Jun 23, 2021
May 7, 2022
Apr 30, 2022
Jul 24, 2016
Apr 25, 2015
Jun 23, 2021
Nov 30, 2019
May 5, 2022
Sep 16, 2016
Nov 1, 2019

Repository files navigation

Cirno's Perfect Math Library

Build Status Coverage Status

Various useful bits of game math. 3D line intersections, ray casting, 2d/3d vectors, 4x4 matrices, quaternions, etc.

Intended to be used with LuaJIT and LÖVE (this is the backbone of LÖVE3D).

Online documentation can be found here or you can generate them yourself using ldoc -c doc/config.ld -o index .

Installation

Clone the repository and require it, or if you prefer luarocks: $ luarocks install --server=http://luarocks.org/dev cpml. Add --tree=whatever for a local install.

Versions

This library has a major compatibility break at version 1.0. Up to version 0.10, composition a*b means "apply b, then a" for quaternions and "apply a, then b" for matrices. Now as of version 1.0, the two are consistent and matrix a*b means "apply b, then a".