GLM Version 0.9.0

vector_query.hpp

00001 
00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
00004 // Created : 2007-03-05
00005 // Updated : 2007-03-05
00006 // Licence : This source is under MIT License
00007 // File    : glm/gtx/vector_query.hpp
00009 // Dependency:
00010 // - GLM core
00012 
00013 #ifndef glm_gtx_vector_query
00014 #define glm_gtx_vector_query
00015 
00016 // Dependency:
00017 #include "../glm.hpp"
00018 #include <cfloat>
00019 #include <limits>
00020 
00021 namespace glm
00022 {
00023         namespace test{
00024                 void main_ext_gtx_vector_query();
00025         }//namespace test
00026 
00027     namespace gtx{
00029     namespace vector_query
00030     {
00033                 template <typename genType> 
00034                 bool areCollinear(
00035                         const genType & v0, 
00036                         const genType & v1, 
00037                         const GLMvalType epsilon = std::numeric_limits<GLMvalType>::epsilon());
00038                 
00041                 template <typename genType> 
00042                 bool areOpposite(
00043                         const genType & v0, 
00044                         const genType & v1, 
00045                         const GLMvalType epsilon = std::numeric_limits<GLMvalType>::epsilon());
00046                 
00049                 template <typename genType> 
00050                 bool areOrthogonal(
00051                         const genType & v0, 
00052                         const genType & v1, 
00053                         const GLMvalType epsilon = std::numeric_limits<GLMvalType>::epsilon());
00054 
00057                 template <typename genType> 
00058                 bool isNormalized(
00059                         const genType & v, 
00060                         const GLMvalType epsilon = std::numeric_limits<GLMvalType>::epsilon());
00061                 
00064                 template <typename genType> 
00065                 bool isNull(
00066                         const genType& v, 
00067                         const GLMvalType epsilon = std::numeric_limits<GLMvalType>::epsilon());
00068 
00071                 template <typename genType>
00072                 bool areOrthonormal(
00073                         const genType & v0, 
00074                         const genType & v1, 
00075                         const GLMvalType epsilon = std::numeric_limits<GLMvalType>::epsilon());
00076 
00079                 template <typename genType> 
00080                 bool areSimilar(
00081                         const genType& v0, 
00082                         const genType& v1, 
00083                         const GLMvalType epsilon = std::numeric_limits<GLMvalType>::epsilon());
00084 
00085     }//namespace vector_query
00086     }//namespace gtx
00087 }//namespace glm
00088 
00089 #include "vector_query.inl"
00090 
00091 namespace glm{using namespace gtx::vector_query;}
00092 
00093 #endif//glm_gtx_vector_query