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