30 template <
typename T,
int N>
46 template <
typename T,
int N>
49 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] == other[n];
53 template <
typename T,
int N>
56 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] != other[n];
60 template <
typename T,
int N>
63 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] < other[n];
67 template <
typename T,
int N>
70 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] <= other[n];
74 template <
typename T,
int N>
77 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] > other[n];
81 template <
typename T,
int N>
84 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] >= other[n];
88 template <
typename T,
int N>
93 template <
typename T,
int N>
95 noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE) {
102 for (
int i = 0; i < N; ++i) {
103 result[i] =
static_cast<int>(input[i]);
111 for (
int i = 0; i < N; ++i) {
120 for (
int i = 0; i < N; ++i) {
126 template <
typename T,
int N>
Extent< int, N > ceil(Extent< double, N > const &input) noexcept
Return the component-wise ceil (round towards more positive).
CoordinateExpr< N > ne(Extent< T, N > const &other) const noexcept
A coordinate class intended to represent absolute positions (2-d specialization). ...
A coordinate class intended to represent absolute positions (3-d specialization). ...
A coordinate class intended to represent absolute positions.
CoordinateExpr< N > le(Extent< T, N > const &other) const noexcept
Point< T, N > asPoint() const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE)
Cast this object to an Extent of the same numeric type and dimensionality.
std::size_t hash_value(Extent< T, N > const &extent) noexcept
Extent(T val=static_cast< T >(0)) noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE)
Construct an Extent with all elements set to the same scalar value.
Extent< T, N > operator+() const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE)
A base class for image defects.
Extent< int, N > truncate(Extent< double, N > const &input) noexcept
Return the component-wise truncation (round towards zero).
CoordinateExpr< N > lt(Extent< T, N > const &other) const noexcept
CoordinateExpr< N > gt(Extent< T, N > const &other) const noexcept
A coordinate class intended to represent offsets and dimensions.
Eigen::Vector3d asEigen(sphgeom::Vector3d const &vector) noexcept
CoordinateExpr< N > eq(Extent< T, N > const &other) const noexcept
CoordinateExpr< N > ge(Extent< T, N > const &other) const noexcept
EigenVector const & asEigen() const noexcept(IS_ELEMENT_NOTHROW_COPYABLE)
Return a fixed-size Eigen representation of the coordinate object.
Extent< int, N > floor(Extent< double, N > const &input) noexcept
Return the component-wise floor (round towards more negative).
ItemVariant const * other
std::size_t hashCombine(std::size_t seed) noexcept
Combine hashes.