0.9.6
component_wise.hpp
Go to the documentation of this file.
1 
42 #pragma once
43 
44 // Dependencies
45 #include "../detail/setup.hpp"
46 #include "../detail/precision.hpp"
47 
48 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
49 # pragma message("GLM: GLM_GTX_component_wise extension included")
50 #endif
51 
52 namespace glm
53 {
56 
59  template <typename genType>
60  GLM_FUNC_DECL typename genType::value_type compAdd(
61  genType const & v);
62 
65  template <typename genType>
66  GLM_FUNC_DECL typename genType::value_type compMul(
67  genType const & v);
68 
71  template <typename genType>
72  GLM_FUNC_DECL typename genType::value_type compMin(
73  genType const & v);
74 
77  template <typename genType>
78  GLM_FUNC_DECL typename genType::value_type compMax(
79  genType const & v);
80 
82 }//namespace glm
83 
84 #include "component_wise.inl"
GLM_FUNC_DECL genType::value_type compMax(genType const &v)
Find the maximum value between single vector components.
GLM_FUNC_DECL genType::value_type compAdd(genType const &v)
Add all vector components together.
GLM_FUNC_DECL genType::value_type compMul(genType const &v)
Multiply all vector components together.
Definition: _noise.hpp:39
GLM_FUNC_DECL genType::value_type compMin(genType const &v)
Find the minimum value between single vector components.