Luna::Float4x4
4x4 matrix type with f32 components.
struct Luna::Float4x4
This matrix type is 16-bytes aligned and will use SIMD to accelerate matrix calculations when possible.
Member objects
-
The array of rows of the matrix.
Member functions
-
Constructs one matrix with components uninitialized.
-
Float4x4(const Float4x4 &)=default
Constructs one matrix by coping components from another matrix.
-
Float4x4 & operator=(const Float4x4 &)=default
Assigns one matrix by coping components from another matrix.
-
Constructs one matrix by coping components from another matrix.
-
Float4x4 & operator=(Float4x4 &&)=default
Assigns one matrix by coping components from another matrix.
-
Constructs one matrix from component values.
-
Gets the data of the matrix as one array of f32 elements.
-
Gets the data of the matrix as one array of f32 elements.
-
bool operator==(const Float4x4 &m) const
Compares two matrices for equality.
-
bool operator!=(const Float4x4 &m) const
Compares two matrices for non-equality.
-
Float4x4(const Float4 &row1, const Float4 &row2, const Float4 &row3, const Float4 &row4)
Constructs one matrix from four Float4 vectors.
-
Extracts the first row of the matrix.
-
Extracts the second row of the matrix.
-
Extracts the third row of the matrix.
-
Extracts the fourth row of the matrix.
-
Extracts the first column of the matrix.
-
Extracts the second column of the matrix.
-
Extracts the third column of the matrix.
-
Extracts the fourth column of the matrix.
-
Gets the matrix as is.
-
Gets a negative version of the matrix.
-
Float4x4 & operator+=(const Float4x4 &mat)
Adds one matrix to this matrix. The addition is performed on every component of two matrices.
-
Float4x4 & operator-=(const Float4x4 &mat)
Subtracts one matrix from this matrix. The subtraction is performed on every component of two matrices.
-
Float4x4 & operator*=(const Float4x4 &mat)
Multiplies one matrix to this matrix. The multiplication is performed on every component of two matrices.
-
Float4x4 & operator/=(const Float4x4 &mat)
Divides one matrix from this matrix. The division is performed on every component of two matrices.
-
Adds one scalar to this matrix. The scalar will be added to every component of the matrix.
-
Subtracts one scalar from this matrix. The scalar will be subtracted from every component of the matrix.
-
Multiplies one scalar to this matrix. The scalar will be multiplied to every component of the matrix.
-
Divides one scalar from this matrix. The scalar will be divided from every component of the matrix.