VectR.lua

Download Latest Version

VectR is a library designed to simplify vector mathematics and matrix calculations. It supports 2,3 and 4 dimensional vectors, as well as their equivalent square matrices.

Installation
Place the file vectr.lua into the LuaScriptsLib folder.

How to use
To enable the VectR library for a specific level, add this line to lunadll.lua: This will load the VectR API.

Example
This will transform the vector "v" by the matrix "m".

Values
These are variables you can access

Classes
These are classes contained within this library

Vector2
Values

Functions

Operators

Vector3
Values

Functions

Operators

Vector4
Values

Functions

Operators

Mat2
Values

Functions

Operators

Mat3
Values

Functions

Operators

Mat4
Values

Functions

Operators

External Use Functions
These are functions you will need to use the library