0.9.6
func_noise.hpp
Go to the documentation of this file.
1 
42 #pragma once
43 
44 #include "type_vec1.hpp"
45 #include "type_vec2.hpp"
46 #include "type_vec3.hpp"
47 #include "setup.hpp"
48 
49 namespace glm
50 {
53 
60  template <typename genType>
61  GLM_FUNC_DECL typename genType::value_type noise1(genType const & x);
62 
69  template <typename genType>
70  GLM_FUNC_DECL tvec2<typename genType::value_type, defaultp> noise2(genType const & x);
71 
78  template <typename genType>
79  GLM_FUNC_DECL tvec3<typename genType::value_type, defaultp> noise3(genType const & x);
80 
87  template <typename genType>
88  GLM_FUNC_DECL tvec4<typename genType::value_type, defaultp> noise4(genType const & x);
89 
91 }//namespace glm
92 
93 #include "func_noise.inl"
GLM_FUNC_DECL tvec3< typename genType::value_type, defaultp > noise3(genType const &x)
Returns a 3D noise value based on the input value x.
GLM_FUNC_DECL tvec2< typename genType::value_type, defaultp > noise2(genType const &x)
Returns a 2D noise value based on the input value x.
OpenGL Mathematics (glm.g-truc.net)
OpenGL Mathematics (glm.g-truc.net)
Definition: _noise.hpp:39
OpenGL Mathematics (glm.g-truc.net)
GLM_FUNC_DECL genType::value_type noise1(genType const &x)
Returns a 1D noise value based on the input value x.
GLM_FUNC_DECL tvec4< typename genType::value_type, defaultp > noise4(genType const &x)
Returns a 4D noise value based on the input value x.
OpenGL Mathematics (glm.g-truc.net)