LiteFX::Math::Matrix::Matrix¶
Constructors
Synopses¶
Declared in <litefx/matrix.hpp>
Initializes an empty matrix.
constexpr Matrix() noexcept = default;
Initializes a matrix with the values provided by another matrix.
constexpr Matrix(Matrix const& _other) = default;
Initializes a matrix by taking over another matrix.
constexpr Matrix(Matrix&& _other) noexcept = default;
Initializes a matrix where all elements take the value provided by val.
constexpr Matrix(T val) noexcept;
Initializes the matrix with a set of values.
constexpr Matrix(std::initializer_list<scalar_type> elements) noexcept;
Initializes a matrix from a DirectX matrix instance.
constexpr Matrix(DirectX::XMFLOAT3X3 const& mat) noexcept;
Initializes a matrix from a DirectX matrix instance.
constexpr Matrix(DirectX::XMFLOAT3X4 const& mat) noexcept;
Initializes a matrix from a DirectX matrix instance.
constexpr Matrix(DirectX::XMFLOAT4X3 const& mat) noexcept;
Initializes a matrix from a DirectX matrix instance.
constexpr Matrix(DirectX::XMFLOAT4X4 const& mat) noexcept;
Initializes a matrix from a glm matrix instance.
constexpr Matrix(glm::mat<mat_cols, mat_rows, scalar_type> const& mat) noexcept;
Initializes a matrix with an array of values.
constexpr Matrix(array_type&& array) noexcept;
Initializes a matrix from a glm matrix instance.
constexpr Matrix(glm::mat<mat_cols, mat_rows, scalar_type>&& mat) noexcept;
Initializes a copy from another matrix, that might have different dimensions.
template<
unsigned int rows,
unsigned int cols>
constexpr Matrix(Matrix<scalar_type, rows, cols> const& _other);
Template Parameters¶
| Name | Description |
|---|---|
| rows | The rows of the other matrix. |
| cols | The columns of the other matrix. |
Parameters¶
| Name | Description |
|---|---|
| _other | The other matrix to copy the values from. |
| val | The value to initialize all elements of the matrix with. |
| elements | The values to initialize the matrix with. |
| mat | The DirectX matrix to initialize the matrix instance with. |
| array | The array of values to take over by the matrix. |