# GLM: normalize_dot.hpp Source File

- Main Page
- Namespaces
- Files

- File List

# normalize_dot.hpp

    00001
    00002 // OpenGL Mathematics Copyright (c) 2005 - 2009 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.h
    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         {
    00030                 template <typename genType>
    00031                 typename genType::value_type normalizeDot(
    00032                         genType const & x,
    00033                         genType const & y);
    00034
    00038                 template <typename genType>
    00039                 typename genType::value_type fastNormalizeDot(
    00040                         genType const & x,
    00041                         genType const & y);
    00042
    00043         }//namespace normalize_dot
    00044         }//namespace gtx
    00045 }//namespace glm
    00046
    00047 #define GLM_GTX_normalize_dot namespace gtx::fast_square_root; using namespace gtx::normalize_dot
    00048 #ifndef GLM_GTX_GLOBAL
    00049 namespace glm {using GLM_GTX_normalize_dot;}
    00050 #endif//GLM_GTX_GLOBAL
    00051
    00052 #include "normalize_dot.inl"
    00053
    00054 #endif//glm_gtx_normalize_dot