A 2-by-2 matrix. Stored in column-major order.
Empty constructor
Column 1
Column 2
Sets all internal matrix values to absolute values.
Adds the two 2x2 matricies together and stores the result in this matrix.
2x2 matrix to add.
Creates a copy of the matrix.
Copy of this 2x2 matrix.
Creates a rotation 2x2 matrix from the given angle. R(theta) = [ cos(theta) -sin(theta) ] [ sin(theta) cos(theta) ]
Matrix angle (theta).
2x2 matrix.
Creates a 2x2 matrix from two columns.
2x2 matrix.
Gets the rotation matrix angle. R(theta) = [ cos(theta) -sin(theta) ] [ sin(theta) cos(theta) ]
number
The rotation matrix angle (theta).
Compute the inverse of this matrix, such that inv(A) A = identity.
Inverse matrix.
Inverse matrix.
Sets the 2x2 rotation matrix from the given angle. R(theta) = [ cos(theta) -sin(theta) ] [ sin(theta) cos(theta) ]
Matrix angle (theta).
Sets the 2x2 matrix to identity.
Sets the 2x2 matrix from a 2x2 matrix.
2x2 matrix values.
Sets the 2x2 matrix from 2 column vectors.
Sets the 2x2 matrix to all zeros.
TODO, has something to do with the determinant
Solved vector
Solved vector