# GLM: vector_angle.hpp Source File

- Main Page
- Namespaces
- Files

- File List

# vector_angle.hpp

    00001
    00002 // OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net)
    00004 // Created : 2005-12-30
    00005 // Updated : 2006-11-13
    00006 // Licence : This source is under MIT License
    00007 // File    : glm/gtx/vector_angle.h
    00009 // Dependency:
    00010 // - GLM core
    00011 // - GLM_GTX_quaternion
    00012 // - GLM_GTX_epsilon
    00014
    00015 #ifndef glm_gtx_vector_angle
    00016 #define glm_gtx_vector_angle
    00017
    00018 // Dependency:
    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         }//namespace test
    00028
    00029     namespace gtx{
    00031     namespace vector_angle
    00032     {
    00036                 template <typename vecType>
    00037                 typename vecType::value_type angle(
    00038                         vecType const & x,
    00039                         vecType const & y);
    00040
    00044                 template <typename vecType>
    00045                 typename vecType::value_type orientedAngle(
    00046                         vecType const & x,
    00047                         vecType const & y);
    00048
    00052                 template <typename vecType>
    00053                 typename vecType::value_type orientedAngleFromRef(
    00054                         vecType const & x,
    00055                         vecType const & y,
    00056                         detail::tvec3<typename vecType::value_type> const & ref);
    00057     }//namespace vector_angle
    00058     }//namespace gtx
    00059 }//namespace glm
    00060
    00061 #define GLM_GTX_vector_angle namespace gtx::quaternion; using namespace gtx::epsilon; using namespace gtx::vector_angle
    00062 #ifndef GLM_GTX_GLOBAL
    00063 namespace glm {using GLM_GTX_vector_angle;}
    00064 #endif//GLM_GTX_GLOBAL
    00065
    00066 #include "vector_angle.inl"
    00067
    00068 #endif//glm_gtx_vector_angle