- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List

vector_query.hpp
Go to the documentation of this file.

    00001
    00002
    00003
    00004
    00005
    00006
    00007
    00008
    00009
    00010
    00011
    00012
    00013
    00014
    00015
    00016
    00017
    00018
    00019
    00020
    00021
    00022
    00023
    00024
    00025
    00026
    00027
    00028
    00029
    00030
    00031
    00032
    00033
    00034
    00035
    00036
    00037
    00038 #ifndef GLM_GTX_vector_query
    00039 #define GLM_GTX_vector_query GLM_VERSION
    00040
    00041 // Dependency:
    00042 #include "../glm.hpp"
    00043 #include <cfloat>
    00044 #include <limits>
    00045
    00046 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
    00047 #       pragma message("GLM: GLM_GTX_vector_query extension included")
    00048 #endif
    00049
    00050 namespace glm
    00051 {
    00054
    00057         template <typename genType>
    00058         bool areCollinear(
    00059                 genType const & v0,
    00060                 genType const & v1,
    00061                 typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
    00062
    00065         template <typename genType>
    00066         bool areOrthogonal(
    00067                 genType const & v0,
    00068                 genType const & v1,
    00069                 typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
    00070
    00073         template <typename genType, template <typename> class vecType>
    00074         bool isNormalized(
    00075                 vecType<genType> const & v,
    00076                 genType const & epsilon/* = std::numeric_limits<genType>::epsilon()*/);
    00077
    00080         template <typename valType>
    00081         bool isNull(
    00082                 detail::tvec2<valType> const & v,
    00083                 valType const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
    00084
    00087         template <typename valType>
    00088         bool isNull(
    00089                 detail::tvec3<valType> const & v,
    00090                 valType const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
    00091
    00094         template <typename valType>
    00095         bool isNull(
    00096                 detail::tvec4<valType> const & v,
    00097                 valType const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
    00098
    00101         template <typename genType>
    00102         bool areOrthonormal(
    00103                 genType const & v0,
    00104                 genType const & v1,
    00105                 typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
    00106
    00108 }// namespace glm
    00109
    00110 #include "vector_query.inl"
    00111
    00112 #endif//GLM_GTX_vector_query