00001
00002
00004
00005
00006
00007
00009
00010
00011
00012
00014
00015 #ifndef glm_gtx_vector_angle
00016 #define glm_gtx_vector_angle
00017
00018
00019 #include "../glm.hpp"
00020 #include "../gtx/quaternion.hpp"
00021 #include "../gtx/epsilon.hpp"
00022
00023 namespace glm
00024 {
00025 namespace test{
00026 void main_gtx_vector_angle();
00027 }
00028
00029 namespace gtx{
00031 namespace vector_angle
00032 {
00033 using namespace quaternion;
00034 using namespace epsilon;
00035
00039 template <typename vecType>
00040 typename vecType::value_type angle(
00041 vecType const & x,
00042 vecType const & y);
00043
00047 template <typename vecType>
00048 typename vecType::value_type orientedAngle(
00049 vecType const & x,
00050 vecType const & y);
00051
00055 template <typename vecType>
00056 typename vecType::value_type orientedAngleFromRef(
00057 vecType const & x,
00058 vecType const & y,
00059 detail::tvec3<typename vecType::value_type> const & ref);
00060 }
00061 }
00062 }
00063
00064 #include "vector_angle.inl"
00065
00066 namespace glm{using namespace gtx::vector_angle;}
00067
00068 #endif//glm_gtx_vector_angle