36#include "ChastePoint.hpp"
63 for (
unsigned i=0; i<DIM; i++)
65 mLocation(i) = coords.at(i);
107template<
unsigned DIM>
111 mLocation(i) = value;
114template<
unsigned DIM>
117 bool returned_value =
true;
118 for (
unsigned dim=0; dim<DIM; dim++)
120 if (rPoint[dim] != mLocation[dim])
122 returned_value =
false;
126 return returned_value;
137 EXCEPTION(
"Zero-dimensional point has no data");
#define EXCEPTION(message)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
c_vector< double, DIM > & rGetLocation()
double operator[](unsigned i) const
ChastePoint(double v1=0, double v2=0, double v3=0)
bool IsSamePoint(const ChastePoint< DIM > &rPoint) const
double GetWithDefault(unsigned i, double def=0.0) const
void SetCoordinate(unsigned i, double value)