Flow Visualisation
vector_query.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_vector_query
39 #define GLM_GTX_vector_query GLM_VERSION
40 
41 // Dependency:
42 #include "../glm.hpp"
43 #include <cfloat>
44 #include <limits>
45 
46 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
47 # pragma message("GLM: GLM_GTX_vector_query extension included")
48 #endif
49 
50 namespace glm
51 {
54 
57  template <typename genType>
58  bool areCollinear(
59  genType const & v0,
60  genType const & v1,
61  typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
62 
65  template <typename genType>
66  bool areOrthogonal(
67  genType const & v0,
68  genType const & v1,
69  typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
70 
73  template <typename genType, template <typename> class vecType>
74  bool isNormalized(
75  vecType<genType> const & v,
76  genType const & epsilon/* = std::numeric_limits<genType>::epsilon()*/);
77 
80  template <typename valType>
81  bool isNull(
82  detail::tvec2<valType> const & v,
83  valType const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
84 
87  template <typename valType>
88  bool isNull(
89  detail::tvec3<valType> const & v,
90  valType const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
91 
94  template <typename valType>
95  bool isNull(
96  detail::tvec4<valType> const & v,
97  valType const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
98 
101  template <typename genType>
102  bool areOrthonormal(
103  genType const & v0,
104  genType const & v1,
105  typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
106 
108 }// namespace glm
109 
110 #include "vector_query.inl"
111 
112 #endif//GLM_GTX_vector_query
bool isNormalized(detail::tmat2x2< valType > const &m, valType const &epsilon)
bool isNull(detail::tmat2x2< T > const &m, T const &epsilon)
Definition: matrix_query.inl:17
Definition: _detail.hpp:38
bool areOrthonormal(genType const &v0, genType const &v1, typename genType::value_type const &epsilon)
Definition: vector_query.inl:155
GLM_FUNC_DECL genType epsilon()
Definition: constants.inl:32
bool areOrthogonal(genType const &v0, genType const &v1, typename genType::value_type const &epsilon)
Definition: vector_query.inl:52
bool areCollinear(genType const &v0, genType const &v1, typename genType::value_type const &epsilon)