38 #ifndef FCL_MATH_SAMPLERR_INL_H 39 #define FCL_MATH_SAMPLERR_INL_H 41 #include "fcl/math/sampler/sampler_r.h" 47 template <
typename S, std::
size_t N>
48 SamplerR<S, N>::SamplerR()
54 template <
typename S, std::
size_t N>
55 SamplerR<S, N>::SamplerR(
const VectorN<S, N>& lower_bound_,
const VectorN<S, N>& upper_bound_)
56 : lower_bound(lower_bound_), upper_bound(upper_bound_)
61 template <
typename S, std::
size_t N>
62 void SamplerR<S, N>::setBound(
const VectorN<S, N>& lower_bound_,
const VectorN<S, N>& upper_bound_)
64 lower_bound = lower_bound_;
65 upper_bound = upper_bound_;
69 template <
typename S, std::
size_t N>
70 void SamplerR<S, N>::getBound(VectorN<S, N>& lower_bound_, VectorN<S, N>& upper_bound_)
const 72 lower_bound_ = lower_bound;
73 upper_bound_ = upper_bound;
77 template <
typename S, std::
size_t N>
78 VectorN<S, N> SamplerR<S, N>::sample()
const 82 for(std::size_t i = 0; i < N; ++i)
84 q[i] = this->rng.uniformReal(lower_bound[i], upper_bound[i]);
Main namespace.
Definition: broadphase_bruteforce-inl.h:45