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