Luna::Float3x3
3x3 matrix type with f32 components.
struct Luna::Float3x3
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.
-
Float3x3(const Float3x3 &)=default
Constructs one matrix by coping components from another matrix.
-
Float3x3 & operator=(const Float3x3 &rhs)=default
Assigns one matrix by coping components from another matrix.
-
Float3x3(Float3x3 &&rhs)=default
Constructs one matrix by coping components from another matrix.
-
Float3x3 & operator=(Float3x3 &&rhs)=default
Assigns one matrix by coping components from another matrix.
-
constexpr Float3x3(f32 m00, f32 m01, f32 m02, f32 m10, f32 m11, f32 m12, f32 m20, f32 m21, f32 m22)
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 Float3x3 &m) const
Compares two matrices for equality.
-
bool operator!=(const Float3x3 &m) const
Compares two matrices for non-equality.
-
Float3x3(const Float3 &row1, const Float3 &row2, const Float3 &row3)
Constructs one matrix from three Float3 vectors.
-
Extracts the first row of the matrix.
-
Extracts the second row of the matrix.
-
Extracts the third 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.
-
Gets the matrix as is.
-
Gets a negative version of the matrix.
-
Float3x3 & operator+=(const Float3x3 &mat)
Adds one matrix to this matrix. The addition is performed on every component of two matrices.
-
Float3x3 & operator-=(const Float3x3 &mat)
Subtracts one matrix from this matrix. The subtraction is performed on every component of two matrices.
-
Float3x3 & operator*=(const Float3x3 &mat)
Multiplies one matrix to this matrix. The multiplication is performed on every component of two matrices.
-
Float3x3 & operator/=(const Float3x3 &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.