Added spherical and circular rand implementations

This commit is contained in:
Christophe Riccio
2011-09-23 09:14:25 +01:00
parent 7df14e51dd
commit 5f52e6a82f
3 changed files with 41 additions and 6 deletions

View File

@@ -66,10 +66,10 @@ namespace glm
/// Generate random numbers in the interval [Min, Max], according a gaussian distribution
/// (From GLM_GTX_random extension)
template <typename T, template <typename> class vecType>
vecType<T> gaussRand(
vecType<T> const & Mean,
vecType<T> const & Deviation);
template <typename genType>
genType gaussRand(
genType const & Mean,
genType const & Deviation);
/// Generate a random 2D vector which coordinates are regulary distributed on a circle of a given radius
/// (From GLM_GTX_random extension)