0.9.8: matrix_query.hpp Source File

| 0.9.8

- Main Page
- Modules
- Files

- File List

matrix_query.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependency:
17 #include "../glm.hpp"
18 #include "../gtx/vector_query.hpp"
19 #include <limits>
20
21 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
22 # pragma message("GLM: GLM_GTX_matrix_query extension included")
23 #endif
24
25 namespace glm
26 {
29
32 template<typename T, precision P>
33 GLM_FUNC_DECL bool isNull(tmat2x2<T, P> const & m, T const & epsilon);
34
37 template<typename T, precision P>
38 GLM_FUNC_DECL bool isNull(tmat3x3<T, P> const & m, T const & epsilon);
39
42 template<typename T, precision P>
43 GLM_FUNC_DECL bool isNull(tmat4x4<T, P> const & m, T const & epsilon);
44
47 template<typename T, precision P, template <typename, precision> class matType>
48 GLM_FUNC_DECL bool isIdentity(matType<T, P> const & m, T const & epsilon);
49
52 template<typename T, precision P>
53 GLM_FUNC_DECL bool isNormalized(tmat2x2<T, P> const & m, T const & epsilon);
54
57 template<typename T, precision P>
58 GLM_FUNC_DECL bool isNormalized(tmat3x3<T, P> const & m, T const & epsilon);
59
62 template<typename T, precision P>
63 GLM_FUNC_DECL bool isNormalized(tmat4x4<T, P> const & m, T const & epsilon);
64
67 template<typename T, precision P, template <typename, precision> class matType>
68 GLM_FUNC_DECL bool isOrthogonal(matType<T, P> const & m, T const & epsilon);
69
71 }//namespace glm
72
73 #include "matrix_query.inl"
glm::epsilon
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
Return the epsilon constant for floating point types.
glm::isNull
GLM_FUNC_DECL bool isNull(tmat4x4< T, P > const &m, T const &epsilon)
Return whether a matrix is a null matrix.
glm
Definition: _noise.hpp:11
glm::isIdentity
GLM_FUNC_DECL bool isIdentity(matType< T, P > const &m, T const &epsilon)
Return whether a matrix is an identity matrix.
glm::isNormalized
GLM_FUNC_DECL bool isNormalized(tmat4x4< T, P > const &m, T const &epsilon)
Return whether a matrix is a normalized matrix.
glm::isOrthogonal
GLM_FUNC_DECL bool isOrthogonal(matType< T, P > const &m, T const &epsilon)
Return whether a matrix is an orthonormalized matrix.