matrix_operation.hpp
Go to the documentation of this file.
#pragma once
// Dependency:
#include "../glm.hpp"
#ifndef GLM_ENABLE_EXPERIMENTAL
# error "GLM: GLM_GTX_matrix_operation is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
#elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTX_matrix_operation extension included")
#endif
namespace glm
{
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<2, 2, T, Q> diagonal2x2(
vec<2, T, Q> const& v);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<2, 3, T, Q> diagonal2x3(
vec<2, T, Q> const& v);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<2, 4, T, Q> diagonal2x4(
vec<2, T, Q> const& v);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<3, 2, T, Q> diagonal3x2(
vec<2, T, Q> const& v);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<3, 3, T, Q> diagonal3x3(
vec<3, T, Q> const& v);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<3, 4, T, Q> diagonal3x4(
vec<3, T, Q> const& v);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<4, 2, T, Q> diagonal4x2(
vec<2, T, Q> const& v);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<4, 3, T, Q> diagonal4x3(
vec<3, T, Q> const& v);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<4, 4, T, Q> diagonal4x4(
vec<4, T, Q> const& v);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<2, 2, T, Q> adjugate(mat<2, 2, T, Q> const& m);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<3, 3, T, Q> adjugate(mat<3, 3, T, Q> const& m);
template<typename T, qualifier Q>
GLM_FUNC_DECL mat<4, 4, T, Q> adjugate(mat<4, 4, T, Q> const& m);
}//namespace glm
#include "matrix_operation.inl"
glm::diagonal4x3
GLM_FUNC_DECL mat< 4, 3, T, Q > diagonal4x3(vec< 3, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal3x3
GLM_FUNC_DECL mat< 3, 3, T, Q > diagonal3x3(vec< 3, T, Q > const &v)
Build a diagonal matrix.
glm::adjugate
GLM_FUNC_DECL mat< 4, 4, T, Q > adjugate(mat< 4, 4, T, Q > const &m)
Build an adjugate matrix.
glm::diagonal2x4
GLM_FUNC_DECL mat< 2, 4, T, Q > diagonal2x4(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal2x2
GLM_FUNC_DECL mat< 2, 2, T, Q > diagonal2x2(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal2x3
GLM_FUNC_DECL mat< 2, 3, T, Q > diagonal2x3(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal4x2
GLM_FUNC_DECL mat< 4, 2, T, Q > diagonal4x2(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal3x4
GLM_FUNC_DECL mat< 3, 4, T, Q > diagonal3x4(vec< 3, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal3x2
GLM_FUNC_DECL mat< 3, 2, T, Q > diagonal3x2(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal4x4
GLM_FUNC_DECL mat< 4, 4, T, Q > diagonal4x4(vec< 4, T, Q > const &v)
Build a diagonal matrix.