0.9.8
vector_angle.hpp
Go to the documentation of this file.
1 
15 #pragma once
16 
17 // Dependency:
18 #include "../glm.hpp"
19 #include "../gtc/epsilon.hpp"
20 #include "../gtx/quaternion.hpp"
21 #include "../gtx/rotate_vector.hpp"
22 
23 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTX_vector_angle extension included")
25 #endif
26 
27 namespace glm
28 {
31 
35  template <typename vecType>
36  GLM_FUNC_DECL typename vecType::value_type angle(
37  vecType const & x,
38  vecType const & y);
39 
43  template <typename T, precision P>
44  GLM_FUNC_DECL T orientedAngle(
45  tvec2<T, P> const & x,
46  tvec2<T, P> const & y);
47 
51  template <typename T, precision P>
52  GLM_FUNC_DECL T orientedAngle(
53  tvec3<T, P> const & x,
54  tvec3<T, P> const & y,
55  tvec3<T, P> const & ref);
56 
58 }// namespace glm
59 
60 #include "vector_angle.inl"
Definition: _noise.hpp:11
GLM_FUNC_DECL vecType::value_type angle(vecType const &x, vecType const &y)
Returns the absolute angle between two vectors.
GLM_FUNC_DECL T orientedAngle(tvec3< T, P > const &x, tvec3< T, P > const &y, tvec3< T, P > const &ref)
Returns the oriented angle between two 3d vectors based from a reference axis.