25 #ifndef LSST_GEOM_COORDINATEEXPR_H 26 #define LSST_GEOM_COORDINATEEXPR_H 58 template <
typename Vector>
59 explicit CoordinateExpr(Eigen::MatrixBase<Vector>
const& vector) : Super(vector) {}
82 for (
int n = 0; n < N; ++n)
83 if (!expr[n])
return false;
90 for (
int n = 0; n < N; ++n)
91 if (expr[n])
return true;
CoordinateExpr not_() const noexcept
A CRTP base class for coordinate objects.
CoordinateExpr or_(CoordinateExpr const &rhs) const noexcept
CoordinateExpr & operator=(CoordinateExpr const &) noexcept=default
CoordinateExpr(Eigen::MatrixBase< Vector > const &vector)
Construct a CoordinateExpr from an Eigen vector.
~CoordinateExpr() noexcept=default
CoordinateExpr and_(CoordinateExpr const &rhs) const noexcept
bool any(CoordinateExpr< N > const &expr) noexcept
Return true if any elements are true.
bool all(CoordinateExpr< N > const &expr) noexcept
Return true if all elements are true.
A base class for image defects.
CoordinateExpr(bool val=false) noexcept
Construct a CoordinateExpr with all elements set to the same scalar value.
CoordinateExpr< 3 > CoordinateExpr3
CoordinateExpr< 2 > CoordinateExpr2