This commit is contained in:
FatalErr42O 2023-08-29 17:39:08 -07:00
commit 5afb9bc2d4

View File

@ -1,17 +1,11 @@
Cirno's Perfect Math Library
====
Adapated for Minetest
### Adapated for Minetest
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](http://excessive.github.io/cpml/) 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".
### TODO:
* Vec3s and Vec2s are not currently adapted for functionality with MT vectors (seperate classes)