SMat3
A 3x3 matrix.
Constructors
Method New(a:Double, b:Double, c:Double, d:Double, e:Double, f:Double, g:Double, h:Double, i:Double)
Creates a new SMat3 from the supplied arguments.
Operators
Method Operator+:SMat3(z:SMat3 Var)
Adds z to the matrix, returning a new matrix.
Method Operator-:SMat3(z:SMat3 Var)
Subtracts z from the matrix, returning a new matrix.
Method Operator*:SMat3(z:SMat3 Var)
Multiplies the matrix by z, returning a new matrix.
Methods
Method Apply:SVec2(v:SVec2)
Applies the matrix to the vector v, returning a new vector.
Method Apply:SVec3(v:SVec3)
Applies the matrix to the vector v, returning a new vector.
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 Determinant:Double()
Returns the determinant of the matrix.
Method Invert:SMat3()
Returns the inverse of the matrix.
Method Rotate:SMat3(angle:Double)
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 ToString:String() Override
Returns a String representation of the matrix.
Functions
Function Identity:SMat3()
Return the 3x3 identity matrix.
Function Rotation:SMat3(angle:Double)
Retrns a rotation matrix of angle degrees.
Function Scaling:SMat3(s:SVec2)
Returns a scaling matrix of s.