36 if (i < _coefficients.size()) {
37 return _coefficients[i];
41 newErrorMessage +=
"\n";
42 throw std::out_of_range(newErrorMessage);
47 if (i < _coefficients.size()) {
52 newErrorMessage +=
"\n";
53 throw std::out_of_range(newErrorMessage);
59 return std::string(
"ON");
61 return std::string(
"OUT");
63 return std::string(
"IN");
65 return std::string(
"IN_OR_OUT");
66 return std::string(
"UNKNOWN");
double getCoefficient(unsigned int i) const
void setCoefficient(unsigned int i, double c)
static std::string concatStrings(int i, const std::string &functionName)
Useful function to provide error message to the exception mechanism.
static std::string getStateAsText(const HalfSpace_Rn::State &)
HalfSpace_Rn(unsigned int n)
Constructor.