43 #ifndef FASTRACK_CONTROL_SCALAR_BOUND_INTERVAL_H 44 #define FASTRACK_CONTROL_SCALAR_BOUND_INTERVAL_H 59 if (params.size() != 2)
60 throw std::runtime_error(
"Incorrect number of parameters.");
69 if (&other ==
this)
return *
this;
77 inline bool Contains(
const double& query)
const {
78 return min_ <= query && query <=
max_;
ScalarBoundInterval(double min, double max)
double ProjectToSurface(const double &query) const
ScalarBoundInterval & operator=(const ScalarBoundInterval &other)
bool Contains(const double &query) const
ScalarBoundInterval(const std::vector< double > ¶ms)