Added getter for resolution

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@722 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2012-10-01 07:09:40 +00:00
parent 339b4d34d4
commit a1315c1dd9
2 changed files with 6 additions and 0 deletions

View File

@@ -91,6 +91,10 @@ double RandomNumberGenerator::getRand() const {
return randNum / maxNum_; return randNum / maxNum_;
} }
double RandomNumberGenerator::resolution() const {
return maxNum_;
}
//============================================================================= //=============================================================================
} // namespace OpenMesh } // namespace OpenMesh
//============================================================================= //=============================================================================

View File

@@ -85,6 +85,8 @@ public:
/// returns a random double between 0.0 and 1.0 with a guaranteed resolution /// returns a random double between 0.0 and 1.0 with a guaranteed resolution
double getRand() const; double getRand() const;
double resolution() const;
private: private:
/// desired resolution /// desired resolution