18 #ifndef itkContinuousIndex_h
19 #define itkContinuousIndex_h
24 #include <type_traits>
45 template <
typename TCoordRep =
double,
unsigned int VIndexDimension = 2>
48 static_assert(std::is_floating_point_v<TCoordRep>,
49 "The coordinates of a continuous index must be represented by floating point numbers.");
62 static constexpr
unsigned int IndexDimension = VIndexDimension;
84 for (
unsigned int i = 0; i < VIndexDimension; ++i)
86 (*this)[i] = static_cast<TCoordRep>(index[i]);