lsst.geom
tickets.DM-23835-g1b0a77db9f
|
Go to the documentation of this file.
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) {
96 return Point<T, N>(this->_vector + other.asEigen());
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>
135 template class ExtentBase<int, 2>;
136 template class ExtentBase<int, 3>;
137 template class ExtentBase<double, 2>;
138 template class ExtentBase<double, 3>;
139 template class Extent<int, 2>;
140 template class Extent<int, 3>;
141 template class Extent<double, 2>;
142 template class Extent<double, 3>;
148 template Extent<int, 2>
truncate(Extent<double, 2>
const &);
149 template Extent<int, 3>
truncate(Extent<double, 3>
const &);
150 template Extent<int, 2>
floor(Extent<double, 2>
const &);
151 template Extent<int, 3>
floor(Extent<double, 3>
const &);
152 template Extent<int, 2>
ceil(Extent<double, 2>
const &);
153 template Extent<int, 3>
ceil(Extent<double, 3>
const &);
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.
CoordinateExpr< N > eq(Extent< T, N > const &other) const noexcept
CoordinateExpr< N > ge(Extent< T, N > const &other) const noexcept
std::size_t hash_value(Extent< T, N > const &extent) noexcept
Extent< int, N > truncate(Extent< double, N > const &input) noexcept
Return the component-wise truncation (round towards zero).
CoordinateExpr< N > le(Extent< T, N > const &other) const noexcept
std::size_t hashCombine(std::size_t seed) noexcept
A coordinate class intended to represent absolute positions (2-d specialization).
CoordinateExpr< N > ne(Extent< T, N > const &other) const noexcept
A coordinate class intended to represent absolute positions.
Eigen::Vector3d asEigen(sphgeom::Vector3d const &vector) noexcept
Extent< T, N > operator+() const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE)
CoordinateExpr< N > gt(Extent< T, N > const &other) const noexcept
Extent< int, N > floor(Extent< double, N > const &input) noexcept
Return the component-wise floor (round towards more negative).
Extent< int, N > ceil(Extent< double, N > const &input) noexcept
Return the component-wise ceil (round towards more positive).
CoordinateExpr< N > lt(Extent< T, N > const &other) const noexcept
A coordinate class intended to represent offsets and dimensions.
Point< T, N > asPoint() const noexcept(Super::IS_ELEMENT_NOTHROW_COPYABLE)
Cast this object to an Extent of the same numeric type and dimensionality.