Expand description
3x3 Matrix
Functions§
- add
- Adds two mat3’s.
- adjoint
- Calculates the adjugate of a mat3.
- clone
- Creates a new mat3 initialized with values from an existing matrix.
- copy
- Copy the values from one mat3 to another.
- create
- Creates a new identity mat3.
- determinant
- Calculates the determinant of a mat3.
- equals
- Returns whether or not the matrices have approximately the same elements in the same position.
- exact_
equals - Returns whether or not the matrices have exactly the same elements in the same position (when compared with ==).
- frob
- Returns Frobenius norm of a mat3.
- from_
mat4 - Copies the upper-left 3x3 values into the given mat3.
- from_
mat2d - Copies the values from a mat2d into a mat3.
- from_
quat - Calculates a 3x3 matrix from the given quaternion.
- from_
rotation - Creates a matrix from a given angle.
- from_
scaling - Creates a matrix from a vector scaling.
- from_
translation - Creates a matrix from a vector translation.
- from_
values - Create a new mat3 with the given values.
- identity
- Set a mat3 to the identity matrix.
- invert
- Inverts a mat3.
- mul
- Alias for mat3::multiply.
- multiply
- Multiplies two mat3’s.
- multiply_
scalar - Multiply each element of the matrix by a scalar.
- multiply_
scalar_ and_ add - Adds two mat3’s after multiplying each element of the second operand by a scalar value.
- normal_
from_ mat4 - Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix.
- projection
- Generates a 2D projection matrix with the given bounds.
- rotate
- Rotates a mat3 by the given angle.
- scale
- Scales the mat3 by the dimensions in the given vec2.
- set
- Set the components of a mat3 to the given values.
- string
- Returns a string representation of a mat3.
- sub
- Alias for mat3::subtract.
- subtract
- Subtracts matrix b from matrix a.
- translate
- Translate a mat3 by the given vector.
- transpose
- Copies the upper-left 3x3 values into the given mat3.