18 #ifndef itkContinuousIndex_h
19 #define itkContinuousIndex_h
24 #include <type_traits>
45 template <
typename TCoordinate =
double,
unsigned int VIndexDimension = 2>
48 static_assert(std::is_floating_point_v<TCoordinate>,
49 "The coordinates of a continuous index must be represented by floating point numbers.");
60 #ifndef ITK_FUTURE_LEGACY_REMOVE
61 using CoordRepType ITK_FUTURE_DEPRECATED(
62 "ITK 6 discourages using `CoordRepType`. Please use `CoordinateType` instead!") =
CoordinateType;
66 static constexpr
unsigned int IndexDimension = VIndexDimension;
88 for (
unsigned int i = 0; i < VIndexDimension; ++i)
90 (*this)[i] = static_cast<TCoordinate>(index[i]);