matrix.h file
Contains the definition of muu::
Namespaces
- namespace muu
- The root namespace for all muu functions and types.
Classes
- struct muu::matrix
- A matrix.
- struct muu::constants<matrix<Scalar, Rows, Columns>>
- Matrix constants.
Enums
- enum class math_apis { directx = 0, opengl = 1, right_handed = 0, left_handed = 2 }
- Flags relating to math APIs w.r.t some graphics + rendering environments (e.g. DirectX).
Functions
- auto approx_equal(const matrix<S, R, C>& m1, const matrix<T, R, C>& m2, epsilon_type<S, T> epsilon = default_epsilon<S, T>) -> bool constexpr noexcept
- Returns true if two matrices are approximately equal.
- auto approx_zero(const matrix<S, R, C>& m, S epsilon = default_epsilon<S>) -> bool constexpr noexcept
- Returns true if all the scalar components of a matrix are approximately equal to zero.
- auto determinant(const matrix<S, R, C>& m) -> determinant_type constexpr noexcept
- Calculates the determinant of a matrix.
- auto infinity_or_nan(const matrix<S, R, C>& m) -> bool constexpr noexcept
- Returns true if any of the scalar components of a matrix are infinity or NaN.
- auto invert(const matrix<S, R, C>& m) -> inverse_type constexpr noexcept
- Returns the inverse of a matrix.
- auto orthonormalize(const matrix<S, R, C>& m) -> matrix<S, R, C> constexpr noexcept
- Returns a copy of a matrix with the 3x3 part orthonormalized.
- auto transpose(const matrix<S, R, C>& m) -> matrix<S, C, R> constexpr noexcept
- Returns a transposed copy of a matrix.