gtc/random.hpp
Go to the documentation of this file.
1 
40 #pragma once
41 
42 // Dependency:
43 #include "../vec2.hpp"
44 #include "../vec3.hpp"
45 
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTC_random extension included")
48 #endif
49 
50 namespace glm
51 {
54 
61  template <typename genTYpe>
62  GLM_FUNC_DECL genTYpe linearRand(
63  genTYpe const & Min,
64  genTYpe const & Max);
65 
66  template <typename T, precision P, template <typename, precision> class vecType>
67  GLM_FUNC_DECL vecType<T, P> linearRand(
68  vecType<T, P> const & Min,
69  vecType<T, P> const & Max);
70 
76  template <typename genType>
77  GLM_FUNC_DECL genType gaussRand(
78  genType const & Mean,
79  genType const & Deviation);
80 
85  template <typename T>
86  GLM_FUNC_DECL detail::tvec2<T, defaultp> circularRand(
87  T const & Radius);
88 
93  template <typename T>
94  GLM_FUNC_DECL detail::tvec3<T, defaultp> sphericalRand(
95  T const & Radius);
96 
101  template <typename T>
102  GLM_FUNC_DECL detail::tvec2<T, defaultp> diskRand(
103  T const & Radius);
104 
109  template <typename T>
110  GLM_FUNC_DECL detail::tvec3<T, defaultp> ballRand(
111  T const & Radius);
112 
114 }//namespace glm
115 
116 #include "random.inl"
glm::linearRand
GLM_FUNC_DECL genTYpe linearRand(genTYpe const &Min, genTYpe const &Max)
glm
Definition: _literals.hpp:31
Eigen::Triplet
glm::circularRand
GLM_FUNC_DECL detail::tvec2< T, defaultp > circularRand(T const &Radius)
glm::ballRand
GLM_FUNC_DECL detail::tvec3< T, defaultp > ballRand(T const &Radius)
glm::sphericalRand
GLM_FUNC_DECL detail::tvec3< T, defaultp > sphericalRand(T const &Radius)
GLM_FUNC_DECL
#define GLM_FUNC_DECL
Definition: setup.hpp:728
glm::gaussRand
GLM_FUNC_DECL genType gaussRand(genType const &Mean, genType const &Deviation)
glm::diskRand
GLM_FUNC_DECL detail::tvec2< T, defaultp > diskRand(T const &Radius)


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:15