SMat2
A 2x2 Matrix
Constructors
Method New(a:Double, b:Double, c:Double, d:Double)
Creates a new SMat2 from the supplied arguments.
Operators
Method Operator+:SMat2(z:SMat2)
Adds z to the matrix, returning a new matrix.
Method Operator-:SMat2(z:SMat2)
Subtracts z from the matrix, returning a new matrix.
Method Operator*:SMat2(z:SMat2)
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 Adjoint:SMat2()
Returns the transposition of the cofactor matrix.
Method CompMul:SMat2(z:SMat2)
Multiplies the matrix by z by its components, return a new matrix.
Method Determinant:Double()
Returns the determinant of the matrix.
Method Invert:SMat2()
Returns the inverse of the matrix.
Method Rotate:SMat2(angle:Double)
Rotates the matrix by angle degrees, returning the rotated matrix.
Method Scale:SMat2(s:SVec2)
Returns the scale of this matrix.
Method Transpose:SMat2()
Returns the transpose of this matrix.
Method ToString:String() Override
Returns a String representation of the matrix.
Functions
Function Identity:SMat2()
Returns the identity matrix.
Function Rotation:SMat2(angle:Double)
Creates a rotated matrix of angle degrees.
Function Scaling:SMat2(s:SVec2)
Creates a scaled matrix of the scale s.