29 template <
typename T,
int N>
42 template <
typename T,
int N>
45 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] == other[n];
49 template <
typename T,
int N>
52 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] != other[n];
56 template <
typename T,
int N>
59 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] < other[n];
63 template <
typename T,
int N>
66 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] <= other[n];
70 template <
typename T,
int N>
73 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] > other[n];
77 template <
typename T,
int N>
80 for (
int n = 0; n < N; ++n) r[n] = this->_vector[n] >= other[n];
84 template <
typename T,
int N>
89 template <
typename T,
int N>
97 for (
int i = 0; i < N; ++i) {
98 result[i] =
static_cast<int>(input[i]);
106 for (
int i = 0; i < N; ++i) {
115 for (
int i = 0; i < N; ++i) {
Extent(T val=static_cast< T >(0))
Construct an Extent with all elements set to the same scalar value.
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.
constexpr Angle operator+(Angle a, Angle d) noexcept
Sum of two angles.
Extent< int, N > truncate(Extent< double, N > const &input)
Return the component-wise truncation (round towards zero).
Extent< int, N > ceil(Extent< double, N > const &input)
Return the component-wise ceil (round towards more positive).
Eigen::Vector3d asEigen(sphgeom::Vector3d const &vector)
A coordinate class intended to represent offsets and dimensions.
Extent< int, N > floor(Extent< double, N > const &input)
Return the component-wise floor (round towards more negative).
EigenVector const & asEigen() const
Return a fixed-size Eigen representation of the coordinate object.