GLM Version 0.9.0
|
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 namespace glm 00022 { 00023 namespace gtx{ 00025 namespace normalize_dot 00026 { 00027 using namespace gtx::fast_square_root; 00028 00032 template <typename genType> 00033 typename genType::value_type normalizeDot( 00034 genType const & x, 00035 genType const & y); 00036 00040 template <typename genType> 00041 typename genType::value_type fastNormalizeDot( 00042 genType const & x, 00043 genType const & y); 00044 00045 }//namespace normalize_dot 00046 }//namespace gtx 00047 }//namespace glm 00048 00049 #include "normalize_dot.inl" 00050 00051 namespace glm{using namespace gtx::normalize_dot;} 00052 00053 #endif//glm_gtx_normalize_dot