gtc_random Module Reference
Include < glm/gtc/random.hpp > to use the features of this extension.
Generate random number from various distribution methods.
Public Member Functions
-
GLM_FUNC_DECL genTypelinearRand (genType Min, genType Max)
Generate random numbers in the interval [Min, Max], according a linear distribution
Min
Minimum value included in the sampling
MaxMaximum value included in the sampling
genTypeValue type. Currently supported: float or double scalars.
- See Also
-
GLM_FUNC_DECL vec< L, T, Q >linearRand (vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
Generate random numbers in the interval [Min, Max], according a linear distribution
Min
Minimum value included in the sampling
MaxMaximum value included in the sampling
TValue type. Currently supported: float or double.
- See Also
-
GLM_FUNC_DECL genTypegaussRand (genType Mean, genType Deviation)
Generate random numbers in the interval [Min, Max], according a gaussian distribution
- See Also
-
GLM_FUNC_DECL vec< 2, T, defaultp >circularRand (T Radius)
Generate a random 2D vector which coordinates are regulary distributed on a circle of a given radius
- See Also
-
GLM_FUNC_DECL vec< 3, T, defaultp >sphericalRand (T Radius)
Generate a random 3D vector which coordinates are regulary distributed on a sphere of a given radius
- See Also
-
GLM_FUNC_DECL vec< 2, T, defaultp >diskRand (T Radius)
Generate a random 2D vector which coordinates are regulary distributed within the area of a disk of a given radius
- See Also
-
GLM_FUNC_DECL vec< 3, T, defaultp >ballRand (T Radius)
Generate a random 3D vector which coordinates are regulary distributed within the volume of a ball of a given radius
- See Also