SMat3
A 3x3 matrix.
Constructors
Method New(a:Float, b:Float, c:Float, d:Float, e:Float, f:Float, g:Float, h:Float, i:Float)
Creates a new SMat3 from the supplied arguments.
Operators
Method Operator+:SMat3(z:SMat3 Var)
Adds z to the matrix, returning the new matrix.
Method Operator-:SMat3(z:SMat3 Var)
Subtracts z from the matrix, returning the new matrix.
Method Operator*:SMat3(z:SMat3 Var)
Multiplies the matrix by z, returning a new matrix.
Methods
Method Adjoint:SMat3()
Returns the transposition of the cofactor matrix.
Method CompMul:SMat3(z:SMat3 Var)
Multiplies the matrix by z by its components, return a new matrix.
Method Det:Float()
Returns the determinant of the matrix.
Method Invert:SMat3()
Returns the inverse of the matrix.
Method Rotate:SMat3(angle:Float)
Rotates the matrix by angle degrees, returning a new matrix.
Method Scale:SMat3(s:SVec2)
Scales the matrix by s, returning a new matrix.
Method Transpose:SMat3()
Returns a transposition of the matrix.
Method Quat:SMat3(a:SQuat)
Applies the quaternion a to the matrix, returning a new matrix.
Method ToString:String() Override
Returns a String representation of the matrix.
Functions
Function Identity:SMat3()
Return the 3x3 identity matrix.
Function Rotation:SMat3(angle:Float)
Retrns a rotation matrix of angle degrees.
Function Scaling:SMat3(s:SVec2)
Returns a scaling matrix of s.