Fixed duplicated implementation of random functions

This commit is contained in:
Christophe Riccio
2011-09-18 13:20:37 +01:00
parent 4f2051728c
commit 3160fbf58c
5 changed files with 30 additions and 566 deletions

View File

@@ -8,7 +8,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
#include <glm/glm.hpp>
#include <glm/gtc/random.hpp>
#include <glm/gtx/random.hpp>
#include <glm/gtx/epsilon.hpp>
#include <iostream>
@@ -21,8 +21,8 @@ int test_signedRand1()
double ResultDouble = 0.0f;
for(std::size_t i = 0; i < 100000; ++i)
{
ResultFloat += glm::signedRand1(-1.0f, 1.0f);
ResultDouble += glm::signedRand1(-1.0, 1.0);
ResultFloat += glm::signedRand1<float>(/*-1.0f, 1.0f*/);
ResultDouble += glm::signedRand1<double>(/*-1.0, 1.0*/);
}
Error += glm::equalEpsilon(ResultFloat, 0.0f, 0.0001f);