Module d2d.math.Matrix
Matrix
Functions
Name | Description |
augment(lhs, rhs)
|
Returns an augmented matrix consisting of two matrices with the same number of rows
Useful for inverse calculations and solving linear systems of equations
|
multiply(lhs, rhs)
|
Takes the product of two matrices with a shared dimension
|
rotationMatrixOf(theta)
|
Returns a rotation matrix for a given radian input
A rotation matrix is a matrix that, when multiplied by the column vector of a given point, rotates that point clockwise by the given angle
|
translationMatrixOf(x, y)
|
Returns a translation matrix for a given x and y input
The translation matrix, when multiplied by the column vector of a point with an additional row of [1.0], will return the column vector of the translated point with an additional row of [1.0]
|
Classes
Name | Description |
Matrix
|
A matrix is just like a mathematical matrix where it is similar to essentially a 2d array of of the given type
Template parameters are the type, how many rows, and how many columns
|