lua.wetgenes.tardis.m2
The metatable for a 2x2 matrix class, use the new function to actually create an object.
We also inherit all the functions from tardis.array
lua.wetgenes.tardis.m2.adjugate
m2 = m2:adjugate()
m2 = m2:adjugate(r)
Adjugate this m2.
If r is provided then the result is written into r and returned otherwise m2 is modified and returned.
lua.wetgenes.tardis.m2.cofactor
m2 = m2:cofactor()
m2 = m2:cofactor(r)
Cofactor this m2.
If r is provided then the result is written into r and returned otherwise m2 is modified and returned.
lua.wetgenes.tardis.m2.determinant
value = m2:determinant()
Return the determinant value of this m2.
lua.wetgenes.tardis.m2.identity
m2 = m2:identity()
Set this m2 to the identity matrix.
lua.wetgenes.tardis.m2.inverse
m2 = m2:inverse()
m2 = m2:inverse(r)
Inverse this m2.
If r is provided then the result is written into r and returned otherwise m2 is modified and returned.
lua.wetgenes.tardis.m2.minor_xy
value = m2:minor_xy()
Return the minor_xy value of this m2.
lua.wetgenes.tardis.m2.new
m2 = tardis.m2.new()
Create a new m2 and optionally set it to the given values, m2 methods usually return the input m2 for easy function chaining.
lua.wetgenes.tardis.m2.scale
m2 = m2:scale(s)
m2 = m2:scale(s,r)
Scale this m2 by s.
If r is provided then the result is written into r and returned otherwise m2 is modified and returned.
lua.wetgenes.tardis.m2.transpose
m2 = m2:transpose()
m2 = m2:transpose(r)
Transpose this m2.
If r is provided then the result is written into r and returned otherwise m2 is modified and returned.