removed heading::rnd (not seedable)
fixed grid-walker issues when conducting multiple runs new helper methods for the interpolatorr
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user