# GLM: component_wise.hpp Source File

- Main Page
- Namespaces
- Files

- File List

# component_wise.hpp

    00001
    00002 // OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net)
    00004 // Created : 2007-05-21
    00005 // Updated : 2007-05-21
    00006 // Licence : This source is under MIT License
    00007 // File    : glm/gtx/component_wise.h
    00009 // Dependency:
    00010 // - GLM core
    00012
    00013 #ifndef glm_gtx_component_wise
    00014 #define glm_gtx_component_wise
    00015
    00016 // Dependency:
    00017 #include "../glm.hpp"
    00018
    00019 namespace glm
    00020 {
    00021         namespace test{
    00022                 void main_gtx_component_wise();
    00023         }//namespace test
    00024
    00025         namespace gtx{
    00027         namespace component_wise
    00028         {
    00031                 template <typename genType>
    00032                 typename genType::value_type compAdd(
    00033                         genType const & v);
    00034
    00037                 template <typename genType>
    00038                 typename genType::value_type compMul(
    00039                         genType const & v);
    00040
    00043                 template <typename genType>
    00044                 typename genType::value_type compMin(
    00045                         genType const & v);
    00046
    00049                 template <typename genType>
    00050                 typename genType::value_type compMax(
    00051                         genType const & v);
    00052
    00053         }//namespace component_wise
    00054         }//namespace gtx
    00055 }//namespace glm
    00056
    00057 #define GLM_GTX_component_wise namespace gtx::component_wise
    00058 #ifndef GLM_GTX_GLOBAL
    00059 namespace glm {using GLM_GTX_component_wise;}
    00060 #endif//GLM_GTC_GLOBAL
    00061
    00062 #include "component_wise.inl"
    00063
    00064 #endif//glm_gtx_component_wise