1 #ifndef COMMONTOOLS_RECOALGOS_FKDPOINT_H 2 #define COMMONTOOLS_RECOALGOS_FKDPOINT_H 7 template<
class TYPE,
int numberOfDimensions>
19 static_assert(numberOfDimensions==2,
"FKDPoint number of arguments does not match the number of dimensions");
28 static_assert(numberOfDimensions==3,
"FKDPoint number of arguments does not match the number of dimensions");
38 static_assert(numberOfDimensions==4,
"FKDPoint number of arguments does not match the number of dimensions");
62 void setId(
const unsigned int id)
FKDPoint(TYPE x, TYPE y, unsigned int id=0)
unsigned int getId() const
TYPE const & operator[](unsigned int const i) const
FKDPoint(TYPE x, TYPE y, TYPE z, TYPE w, unsigned int id=0)
FKDPoint(TYPE x, TYPE y, TYPE z, unsigned int id=0)
void setDimension(unsigned int i, const TYPE &value)
TYPE & operator[](unsigned int const i)
void setId(const unsigned int id)
std::array< TYPE, numberOfDimensions > theElements