normalize_dot.hpp
00001 
00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
00004 // Created : 2007-09-28
00005 // Updated : 2008-10-07
00006 // Licence : This source is under MIT License
00007 // File    : glm/gtx/normalize_dot.hpp
00009 // Dependency:
00010 // - GLM core
00011 // - GLM_GTX_fast_square_root
00013 
00014 #ifndef glm_gtx_normalize_dot
00015 #define glm_gtx_normalize_dot
00016 
00017 // Dependency:
00018 #include "../glm.hpp"
00019 #include "../gtx/fast_square_root.hpp"
00020 
00021 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
00022 #       pragma message("GLM: GLM_GTX_normalize_dot extension included")
00023 #endif
00024 
00025 namespace glm{
00026 namespace gtx{
00027 namespace normalize_dot 
00028 {
00029         using namespace gtx::fast_square_root;
00030 
00033 
00037         template <typename genType> 
00038         typename genType::value_type normalizeDot(
00039                 genType const & x, 
00040                 genType const & y);
00041 
00045         template <typename genType> 
00046         typename genType::value_type fastNormalizeDot(
00047                 genType const & x, 
00048                 genType const & y);
00049 
00051 }//namespace normalize_dot
00052 }//namespace gtx
00053 }//namespace glm
00054 
00055 #include "normalize_dot.inl"
00056 
00057 namespace glm{using namespace gtx::normalize_dot;}
00058 
00059 #endif//glm_gtx_normalize_dot