Commit a1315c1d authored by Jan Möbius's avatar Jan Möbius
Browse files

Added getter for resolution

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@722 fdac6126-5c0c-442c-9429-916003d36597
parent 339b4d34
......@@ -91,6 +91,10 @@ double RandomNumberGenerator::getRand() const {
return randNum / maxNum_;
}
double RandomNumberGenerator::resolution() const {
return maxNum_;
}
//=============================================================================
} // namespace OpenMesh
//=============================================================================
......@@ -85,6 +85,8 @@ public:
/// returns a random double between 0.0 and 1.0 with a guaranteed resolution
double getRand() const;
double resolution() const;
private:
/// desired resolution
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment