Skip to content

LiteFX::Math::Matrix::Matrix

Constructors

Synopses

Declared in <litefx/matrix.hpp>

Initializes an empty matrix.

constexpr Matrix() noexcept = default;

» more...

Initializes a matrix with the values provided by another matrix.

constexpr Matrix(Matrix const& _other) = default;

» more...

Initializes a matrix by taking over another matrix.

constexpr Matrix(Matrix&& _other) noexcept = default;

» more...

Initializes a matrix where all elements take the value provided by val.

constexpr Matrix(T val) noexcept;

» more...

Initializes the matrix with a set of values.

constexpr Matrix(std::initializer_list<scalar_type> elements) noexcept;

» more...

Initializes a matrix from a DirectX matrix instance.

constexpr Matrix(DirectX::XMFLOAT3X3 const& mat) noexcept;

» more...

Initializes a matrix from a DirectX matrix instance.

constexpr Matrix(DirectX::XMFLOAT3X4 const& mat) noexcept;

» more...

Initializes a matrix from a DirectX matrix instance.

constexpr Matrix(DirectX::XMFLOAT4X3 const& mat) noexcept;

» more...

Initializes a matrix from a DirectX matrix instance.

constexpr Matrix(DirectX::XMFLOAT4X4 const& mat) noexcept;

» more...

Initializes a matrix from a glm matrix instance.

constexpr Matrix(glm::mat<mat_cols, mat_rows, scalar_type> const& mat) noexcept;

» more...

Initializes a matrix with an array of values.

constexpr Matrix(array_type&& array) noexcept;

» more...

Initializes a matrix from a glm matrix instance.

constexpr Matrix(glm::mat<mat_cols, mat_rows, scalar_type>&& mat) noexcept;

» more...

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);

» more...

Template Parameters

NameDescription
rowsThe rows of the other matrix.
colsThe columns of the other matrix.

Parameters

NameDescription
_otherThe other matrix to copy the values from.
valThe value to initialize all elements of the matrix with.
elementsThe values to initialize the matrix with.
matThe DirectX matrix to initialize the matrix instance with.
arrayThe array of values to take over by the matrix.