global functions
glm::ballRand(...)
tvec3< T, defaultp > glm::ballRand(T Radius)
Documentation from code comments
Generate a random 3D vector which coordinates are regulary distributed within the volume of a ball of a given radius
Parameters:
Radius
See also: gtc_random
glm::circularRand(...)
tvec2< T, defaultp > glm::circularRand(T Radius)
Documentation from code comments
Generate a random 2D vector which coordinates are regulary distributed on a circle of a given radius
Parameters:
Radius
See also: gtc_random
glm::diskRand(...)
tvec2< T, defaultp > glm::diskRand(T Radius)
Documentation from code comments
Generate a random 2D vector which coordinates are regulary distributed within the area of a disk of a given radius
Parameters:
Radius
See also: gtc_random
glm::gaussRand(...)
genType glm::gaussRand(genType Mean, genType Deviation)
Documentation from code comments
Generate random numbers in the interval [Min, Max], according a gaussian distribution
Parameters:
Mean
Deviation
See also: gtc_random
glm::linearRand(...)
genTYpe glm::linearRand(genTYpe Min, genTYpe Max)
Documentation from code comments
Generate random numbers in the interval [Min, Max], according a linear distribution
Parameters:
Min
Max
Type parameters:
genType Value type. Currently supported: float or double scalars.
See also: gtc_random
glm::linearRand(...)
vecType< T, P > glm::linearRand(const vecType< T, P > &Min=P, const vecType< T, P > &Max=P)
Documentation from code comments
Generate random numbers in the interval [Min, Max], according a linear distribution
Parameters:
Min
Max
Type parameters:
T Value type. Currently supported: float or double.
vecType A vertor type: tvec1, tvec2, tvec3, tvec4 or compatible
See also: gtc_random
glm::sphericalRand(...)
tvec3< T, defaultp > glm::sphericalRand(T Radius)
Documentation from code comments
Generate a random 3D vector which coordinates are regulary distributed on a sphere of a given radius
Parameters:
Radius
See also: gtc_random
Last updated 星期二, 19 十一月 2024 17:26:14 UTC - 2537ee49f6d46d5fe98e408849448314fd1f180e
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue