SMat2D
A 2x2 Matrix
Constructors
Method New(a:Double, b:Double, c:Double, d:Double)
Creates a new SMat2D from the supplied arguments.
Operators
Method Operator+:SMat2D(z:SMat2D)
Adds z to the matrix, returning a new matrix.
Method Operator-:SMat2D(z:SMat2D)
Subtracts z from the matrix, returning a new matrix.
Method Operator*:SMat2D(z:SMat2D)
Multiplies the matrix by z, the dot product, returning a new matrix.
Methods
Method Apply:SVec2D(v:SVec2D)
Applies the matrix to the vector v, returning a new vector.
Method Adjoint:SMat2D()
Returns the transposition of the cofactor matrix.
Method CompMul:SMat2D(z:SMat2D)
Multiplies the matrix by z by its components, or element-wise matrix multiplication, return a new matrix.
Method Determinant:Double()
Returns the determinant of the matrix.
Method Invert:SMat2D()
Returns the inverse of the matrix.
Method Rotate:SMat2D(angle:Double)
Rotates the matrix by angle degrees, returning the rotated matrix.
Method Scale:SMat2D(s:SVec2D)
Returns the scale of this matrix.
Method Transpose:SMat2D()
Returns the transpose of this matrix.
Method ToString:String() Override
Returns a String representation of the matrix.
Functions
Function Identity:SMat2D()
Returns the identity matrix.
Function Rotation:SMat2D(angle:Double)
Creates a rotated matrix of angle degrees.
Function Scaling:SMat2D(s:SVec2D)
Creates a scaled matrix of the scale s.