SMat2
A 2x2 Matrix
Constructors
Method New(a:Float, b:Float, c:Float, d:Float)
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 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 Det:Float()
Returns the determinant of the matrix.
Method Invert:SMat2()
Returns the inverse of the matrix.
Method Rotate:SMat2(angle:Float)
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:Float)
Creates a rotated matrix of angle degrees.
Function Scaling:SMat2(s:SVec2)
Creates a scaled matrix of the scale s.