Module geo_nd::matrix [−][src]
Expand description
Matrix library
Structs
A structure that supports the Debug and Display traits, borrowing
a matrix; this permits a relatively simple format of a matrix
through using the [new
] constructor of the type
Functions
Consume the vector, and return a new vector that is the sum of this and a borrowed other vector scaled
Consume the vector, and return a new vector that is the sum of this and a borrowed other vector scaled
Find the determinant of a 2-by-2 matrix
Find the determinant of a 3-by-3 matrix
Find the determinant of a 4-by-4 matrix
Format the matrix for display
Create a rotation 3-by-3 matrix from a quaternion
Create a rotation 4-by-4 matrix from a quaternion
Create an identity square matrix of a given dimension
Create a 2-by-2 identity matrix
Create a 3-by-3 identity matrix
Create a 4-by-4 identity matrix
Find the inverse of a 2-by-2 matrix
Find the inverse of a 3-by-3 matrix
Find the inverse of a 4-by-4 matrix
Return true if the matrix is all zeros
Multiply two matrices
Multiply two square 2x2 matrices and produce a result
Multiply two square 3x3 matrices and produce a result
Multiply two square 4x4 matrices and produce a result
Update the new matrix with every element e scaled so that max(abs(e)) is 1.
Create a perspective graphics matrix
Consume the vector and return a new vector that is the original reduces in scale in each coordinate by a single scaling factor
Consume the vector and return a new vector that is the original scaled in each coordinate a single scaling factor
Set the matrix to have all elements of zero
Consume the vector, and return a new vector that is the difference of this and a borrowed other vector scaled
Transform a vector
Multiply a vec2 by a 2x2 matrix
Multiply a vec3 by a 3x3 matrix
Multiply a vec4 by a 4x4 matrix
Translate a 4-by-4 matrix by a vector - standard graphics approach
Transpose the matrix
Crate a new matrix which is all zeros