57 double dist = norm_2(distV);
62 if (i < _coordinates.size())
63 _coordinates[i] = val;
66 throw std::out_of_range(errorMessage);
71 if (i < _coordinates.size())
72 return _coordinates[i];
75 throw std::out_of_range(errorMessage);
80 std::ostringstream stream_;
83 std::string valString = stream_.str();
85 std::string errorMessage(functionName);
87 errorMessage += valString;
94 std::ostringstream stream_;
97 stream_ <<
", value=";
99 std::string valString = stream_.str();
101 std::string errorMessage(functionName);
103 errorMessage += valString;
111 for (
unsigned int coord_count=0; coord_count<
_coordinates.size(); coord_count++) {
118 for (
unsigned int coord_count=0; coord_count<
_coordinates.size(); coord_count++) {
void load(std::istream &this_istream)
Creation of a n-coordinate geometric point designed to be shared by its neighbour faces...
double getCoordinate(unsigned int i) const
double distanceFrom(const Point_Rn &)
vector< double > _coordinates
Point_Rn(unsigned int n)
Create a n-coordinates point.
static std::string concatStrings(int i, const std::string &functionName)
Useful function to provide error message to the exception mechanism.
void save(std::ostream &this_ostream) const
void setCoordinate(unsigned int i, double val)