Appearance
Class: Mat33
A 3-by-3 matrix. Stored in column-major order.
Constructors
Constructor
new Mat33(
a,b,c):Mat33
Parameters
a
b
c
Returns
Mat33
Constructor
new Mat33():
Mat33
Returns
Mat33
Properties
ex
ex:
Vec3
ey
ey:
Vec3
ez
ez:
Vec3
Methods
getInverse22()
getInverse22(
M):void
Get the inverse of this matrix as a 2-by-2. Returns the zero matrix if singular.
Parameters
M
Mat33
Returns
void
getSymInverse33()
getSymInverse33(
M):void
Get the symmetric inverse of this matrix as a 3-by-3. Returns the zero matrix if singular.
Parameters
M
Mat33
Returns
void
setZero()
setZero():
Mat33
Set this matrix to all zeros.
Returns
Mat33
solve22()
solve22(
v):Vec2
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases. Solve only the upper 2-by-2 matrix equation.
Parameters
v
Returns
solve33()
solve33(
v):Vec3
Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.
Parameters
v
Returns
add()
staticadd(a,b):Mat33
Parameters
a
Mat33
b
Mat33
Returns
Mat33
assert()
staticassert(o):void
Parameters
o
any
Returns
void
isValid()
staticisValid(obj):boolean
Parameters
obj
any
Returns
boolean
mul()
Call Signature
staticmul(a,b):Vec2
Multiply a matrix times a vector.
Parameters
a
Mat33
b
Returns
Call Signature
staticmul(a,b):Vec3
Multiply a matrix times a vector.
Parameters
a
Mat33
b
Returns
mulVec2()
staticmulVec2(a,b):Vec2
Parameters
a
Mat33
b
Returns
mulVec3()
staticmulVec3(a,b):Vec3
Parameters
a
Mat33