lua.wetgenes.tardis.m3
The metatable for a 3x3 matrix class, use the new function to actually create an object.
We also inherit all the functions from tardis.array
lua.wetgenes.tardis.m3.adjugate
m3 = m3:adjugate()
m3 = m3:adjugate(r)
Adjugate this m3.
If r is provided then the result is written into r and returned otherwise m3 is modified and returned.
lua.wetgenes.tardis.m3.cofactor
m3 = m3:cofactor()
m3 = m3:cofactor(r)
Cofactor this m3.
If r is provided then the result is written into r and returned otherwise m3 is modified and returned.
lua.wetgenes.tardis.m3.determinant
value = m3:determinant()
Return the determinant value of this m3.
lua.wetgenes.tardis.m3.identity
m3 = m3:identity()
Set this m3 to the identity matrix.
lua.wetgenes.tardis.m3.inverse
m3 = m3:inverse()
m3 = m3:inverse(r)
Inverse this m3.
If r is provided then the result is written into r and returned otherwise m3 is modified and returned.
lua.wetgenes.tardis.m3.m4
m4 = m3:m4()
Expand an m3 matrix into an m4 matrix.
lua.wetgenes.tardis.m3.minor_xy
value = m3:minor_xy()
Return the minor_xy value of this m3.
lua.wetgenes.tardis.m3.new
m3 = tardis.m3.new()
Create a new m3 and optionally set it to the given values, m3 methods usually return the input m3 for easy function chaining.
lua.wetgenes.tardis.m3.scale
m3 = m3:scale(s)
m3 = m3:scale(s,r)
Scale this m3 by s.
If r is provided then the result is written into r and returned otherwise m3 is modified and returned.
lua.wetgenes.tardis.m3.transpose
m3 = m3:transpose()
m3 = m3:transpose(r)
Transpose this m3.
If r is provided then the result is written into r and returned otherwise m3 is modified and returned.
lua.wetgenes.tardis.m3.v3
v3 = m3:v3(n)
Extract and return a "useful" v3 from an m3 matrix. The first vector is the x axis, then y axis , then z axis.