removed heading::rnd (not seedable)

fixed grid-walker issues when conducting multiple runs
new helper methods for the interpolatorr
This commit is contained in:
2016-04-26 11:49:12 +02:00
parent 6d3d2eeb55
commit 8f6bfa917f
4 changed files with 32 additions and 16 deletions

View File

@@ -64,13 +64,13 @@ public:
float getRAD() const {return rad;}
/** get a random heading */
static Heading rnd() {
static std::minstd_rand gen(1234);
static std::uniform_real_distribution<float> dist(0, _2PI);
const float rnd = dist(gen);
return Heading(rnd);
}
// /** get a random heading */
// static Heading rnd() {
// static std::minstd_rand gen(1234);
// static std::uniform_real_distribution<float> dist(0, _2PI);
// const float rnd = dist(gen);
// return Heading(rnd);
// }
#undef _2PI