Lua Math Library Fight! Last updated 2024-06-25.
GLSLBatteriesBe1zeVectorBrineCPMLHumpLmathLua-QuaternionLuvVectorsMafMathsiesMikuVecMGLRadda3DRussetTvecVectoringVornmath
whole library size (code only)n/a107kB5kB8kB163kB33kB26kB4kB4kB8kB25kB13kB111kB28kB28kB9kB6kB152kB
vector math component sizen/a34kB5kB8kB80kB12kB25kB4kB4kB8kB25kB13kB111kB28kB27kB9kB6kB152kB
unit test coveragen/a
ffi compatibilityn/a
garbage controln/a
last update2018-06-142024-05-072023-08-302022-08-212022-05-072021-03-232021-07-012019-06-192023-08-072019-07-082024-03-012018-07-272021-01-302024-06-062023-08-072023-08-292021-08-282024-05-20
vec2
vec3
vec4
component access
array access
swizzle read
swizzle write
alternative components
scalar-vector operators
vector * scalar
componentwise operators
componentwise functions
mat2
mat3
mat4
non-square matrices1.2N/AN/AN/AN/AN/AN/AN/A
sendable matricesN/AN/AN/AN/AN/AN/AN/AN/A
columns as vectorsN/AN/AN/AN/AN/AN/AN/A
hyperbolic functions1.4
bvecs
vector construct from tableN/A
vector copy construct
vec2 polar constructN/AN/A
vector demoteN/AN/A
vector mixed construct
matrix construct from tableN/AN/AN/AN/AN/AN/AN/AN/A
matrix copy constructN/AN/AN/AN/AN/AN/AN/A
matrix vector constructN/AN/AN/AN/AN/AN/AN/A
matrix mixed constructN/AN/AN/AN/AN/AN/AN/A
matrix upsize constructN/AN/AN/AN/AN/AN/AN/AN/A
transform factoriesN/AN/AN/AN/AN/AN/AN/A
camera factoriesN/AN/AN/AN/AN/AN/AN/A
vector bitwise operators
mix et almixclampclampmix
optical functionsreflect
vector relational functionsmin/max
matrix direct accessN/AN/AN/AN/AN/AN/A
matrix transpose1.2N/AN/AN/AN/AN/AN/A
matrix inverse1.4N/AN/AN/AN/AN/AN/A
isinf and isnan1.3isnan
rounding1.3floor/ceilfloor/ceil
matrix determinant1.5N/AN/AN/AN/AN/AN/AN/A
color packing functions4
color conversion functions
bitfield functions4
complex numbers
polar complexN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/A
complex math functionsN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/A
cvecN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/A
cmatN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/A
quaternionsas vec4
quaternion from angle axisN/AN/AN/AN/AN/AN/AN/AN/AN/AN/A
quaternion to matrixN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/A