Functions
thor::Distributions Namespace Reference

Namespace for some predefined distribution functions. More...

Functions

Distribution< int > uniform (int min, int max)
 Uniform random distribution in an int interval
 
Distribution< unsigned int > uniform (unsigned int min, unsigned int max)
 Uniform random distribution in an unsigned int interval
 
Distribution< float > uniform (float min, float max)
 Uniform random distribution in a float interval
 
Distribution< sf::Time > uniform (sf::Time min, sf::Time max)
 Uniform random distribution in a time interval
 
Distribution< sf::Vector2f > rect (sf::Vector2f center, sf::Vector2f halfSize)
 Uniform random distribution in a rectangle
 
Distribution< sf::Vector2f > circle (sf::Vector2f center, float radius)
 Uniform random distribution in a circle
 
Distribution< sf::Vector2f > deflect (sf::Vector2f direction, float maxRotation)
 Vector rotation with a random angle.
 

Detailed Description

Namespace for some predefined distribution functions.