Skip to main content

Module mat

Module mat 

Source
Expand description

multi dimensional row-major matrix with generic mat2, mat3, mat34 and mat4 implementations there is a mat43 type for mat34 transposes but it does not support the full functionality

Structs§

Mat2
Mat3
Mat4
Mat34
Mat43

Traits§

MatAdjugate
trait for the adjugate of a matrix the adjugate is the transpose of the cofactor matrix the cofactor matrix is the matrix where each element is replaced by its cofactor
MatCofactor
trait for the cofactor of a matrix the cofactor is the minor with an alternating sign, multiplied by (-1)^(row+column)
MatDeterminant
trait for square matrices to compute determinant
MatInverse
trait for all kinds of matrices to calculate inverse
MatMinor
trait for the minor of a matrix the minor is the determinant of the matrix without the given row and column
MatN
base matrix trait for arithmetic ops
MatNew2
trait to construct matrix from 4 scalars
MatNew3
trait to construct matrix from 9 scalars
MatNew4
trait to construct matrix from 16 scalars
MatNew34
trait to construct matrix from 12 scalars
MatNew43
trait to construct matrix from 12 scalars
MatProjection
trait for 4x4 projection matrices
MatRotate2D
trait for minimum of 2x2 matrices applying rotation in z-axis
MatRotate3D
trait for minimum of 3x3 matrices applying rotation to x, y or aribtrary 3D axes
MatScale
trait for all matrices to cerate a scaling matrix
MatTranslate
trait for minimum of 4 column matrices to create translation
MatTranspose
trait for matrix transpose

Functions§

get_orthonormal_basis_frisvad
given the normalised vector n construct an orthonormal basis without sqrt..
get_orthonormal_basis_hughes_moeller
given the normalised vector n, constructs an orthonormal basis returned as tuple