29 #ifndef LSST_AFW_GEOM_COORDINATEEXPR_H
30 #define LSST_AFW_GEOM_COORDINATEEXPR_H
34 namespace lsst {
namespace afw {
namespace geom {
62 template <
typename Vector>
81 for (
int n=0; n<N; ++n)
if (!expr[n])
return false;
88 for (
int n=0; n<N; ++n)
if (expr[n])
return true;
CoordinateExpr(bool val=false)
Construct a CoordinateExpr with all elements set to the same scalar value.
bool all(CoordinateExpr< N > const &expr)
Return true if all elements are true.
CoordinateBase< CoordinateExpr< N >, bool, N > Super
CoordinateExpr or_(CoordinateExpr const &rhs) const
CoordinateExpr and_(CoordinateExpr const &rhs) const
A CRTP base class for coordinate objects.
bool any(CoordinateExpr< N > const &expr)
Return true if any elements are true.
CoordinateExpr< 3 > CoordinateExpr3
CoordinateExpr not_() const
A CRTP base class for coordinate objects, providing partial specializations for 2D and 3D...
CoordinateExpr(Eigen::MatrixBase< Vector > const &vector)
Construct a CoordinateExpr from an Eigen vector.
CoordinateExpr< 2 > CoordinateExpr2