28 #ifndef LSST_AFW_MATH_PixelScaleBoundedField_h_INCLUDED 29 #define LSST_AFW_MATH_PixelScaleBoundedField_h_INCLUDED 55 _inverseScale(1.0 /
std::pow(skyWcs.getPixelScale().asDegrees(), 2)) {}
86 double const _inverseScale;
95 #endif // !LSST_AFW_MATH_PixelScaleBoundedField_h_INCLUDED std::shared_ptr< BoundedField > operator*(double const scale) const override
Return a scaled BoundedField.
A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixel...
PixelScaleBoundedField & operator=(PixelScaleBoundedField const &)=delete
~PixelScaleBoundedField() override=default
bool operator==(BoundedField const &rhs) const override
BoundedFields (of the same sublcass) are equal if their bounding boxes and parameters are equal...
def scale(algorithm, min, max=None, frame=None)
geom::SkyWcs const & getSkyWcs() const
Get the contained SkyWcs.
double getInverseScale() const
Get the cached inverse pixel scale.
A BoundedField that gives the amount a pixel is distorted at each point.
A base class for image defects.
bool isPersistable() const noexcept override
TransformBoundedField is not persistable.
Reports errors in the logical structure of the program.
double evaluate(lsst::geom::Point2D const &position) const override
Evaluate the field at the given point.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
An abstract base class for 2-d functions defined on an integer bounding boxes.
An integer coordinate rectangle.
PixelScaleBoundedField(lsst::geom::Box2I const &bbox, geom::SkyWcs const &skyWcs)
Create a PixelScaleBoundedField from a bounding box and SkyWcs.