GLM: component_wise.hpp Source File

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

component_wise.hpp
Go to the documentation of this file.
1
38 #ifndef GLM_GTX_component_wise
39 #define GLM_GTX_component_wise
40
41 // Dependencies
42 #include "../detail/setup.hpp"
43
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_component_wise extension included")
46 #endif
47
48 namespace glm
49 {
52
55 template <typename genType>
56 typename genType::value_type compAdd(
57 genType const & v);
58
61 template <typename genType>
62 typename genType::value_type compMul(
63 genType const & v);
64
67 template <typename genType>
68 typename genType::value_type compMin(
69 genType const & v);
70
73 template <typename genType>
74 typename genType::value_type compMax(
75 genType const & v);
76
78 }//namespace glm
79
80 #include "component_wise.inl"
81
82 #endif//GLM_GTX_component_wise
glm::compMin
genType::value_type compMin(genType const &v)
Find the minimum value between single vector components.
glm::compMul
genType::value_type compMul(genType const &v)
Multiply all vector components together.
glm::compMax
genType::value_type compMax(genType const &v)
Find the maximum value between single vector components.
glm::compAdd
genType::value_type compAdd(genType const &v)
Add all vector components together.