Namespaces | Functions
Math/Distributions.hpp File Reference

Functors to create random distributions of geometric shapes. More...

Go to the source code of this file.

Namespaces

namespace  thor::Distributions
 Namespace for some predefined distribution functions.

Functions

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

Detailed Description

Functors to create random distributions of geometric shapes.