36 #include "ChastePoint.hpp"
43 template<
unsigned DIM>
60 template<
unsigned DIM>
63 for (
unsigned i=0; i<DIM; i++)
65 mLocation(i) = coords.at(i);
69 template<
unsigned DIM>
75 template<
unsigned DIM>
81 template<
unsigned DIM>
87 template<
unsigned DIM>
94 template<
unsigned DIM>
107 template<
unsigned DIM>
111 mLocation(i) = value;
114 template<
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");
c_vector< double, DIM > & rGetLocation()
double GetWithDefault(unsigned i, double def=0.0) const
#define EXCEPTION(message)
double operator[](unsigned i) const
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
void SetCoordinate(unsigned i, double value)
ChastePoint(double v1=0, double v2=0, double v3=0)
bool IsSamePoint(const ChastePoint< DIM > &rPoint) const