38 #ifndef FCL_MATH_SAMPLERSE2_INL_H 39 #define FCL_MATH_SAMPLERSE2_INL_H 41 #include "fcl/math/sampler/sampler_se2.h" 48 class SamplerSE2<double>;
52 SamplerSE2<S>::SamplerSE2()
59 SamplerSE2<S>::SamplerSE2(
const Vector2<S>& lower_bound_,
const Vector2<S>& upper_bound_) : lower_bound(lower_bound_),
60 upper_bound(upper_bound_)
67 SamplerSE2<S>::SamplerSE2(S x_min, S x_max, S y_min, S y_max) : lower_bound(Vector2<S>(x_min, y_min)),
68 upper_bound(Vector2<S>(x_max, y_max))
75 void SamplerSE2<S>::getBound(Vector2<S>& lower_bound_, Vector2<S>& upper_bound_)
const 77 lower_bound_ = lower_bound;
78 upper_bound_ = upper_bound;
83 void SamplerSE2<S>::setBound(
const Vector2<S>& lower_bound_,
const Vector2<S>& upper_bound_)
85 lower_bound = lower_bound_;
86 upper_bound = upper_bound_;
91 Vector3<S> SamplerSE2<S>::sample()
const 94 q[0] = this->rng.uniformReal(lower_bound[0], lower_bound[1]);
95 q[1] = this->rng.uniformReal(lower_bound[1], lower_bound[2]);
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
static constexpr S pi()
The mathematical constant pi.
Definition: constants.h:49