25#ifndef LSST_JOINTCAL_FRAME_H
26#define LSST_JOINTCAL_FRAME_H
78 void cutMargin(
const double marginX,
const double marginY);
93 bool inFrame(
double x,
double y)
const;
rectangle with sides parallel to axes.
Frame rescale(const double factor) const
rescale it. The center does not move.
Point getCenter() const
Center of the frame.
double getHeight() const
size along y axis
friend std::ostream & operator<<(std::ostream &stream, const Frame &right)
allows
void print(std::ostream &out) const
bool inFrame(double x, double y) const
inside?
Frame operator*(const Frame &right) const
intersection of Frame's.
double minDistToEdges(const Point &point) const
distance to closest boundary.
double xMin
coordinate of boundary.
Frame()
Default constructor.
void cutMargin(const double marginSize)
shrinks the frame (if marginSize>0), enlarges it (if marginSize<0).
bool operator==(const Frame &right) const
necessary for comparisons (!= is defined from this one implicitely)
bool operator!=(const Frame &right) const
comparison
Frame & operator*=(const Frame &right)
intersection of Frame's
Frame & operator+=(const Frame &right)
union of Frames
double getWidth() const
size along x axis
Frame operator+(const Frame &right) const
union of Frames
bool inFrame(const Point &point) const
same as above
Class for a simple mapping implementing a generic AstrometryTransform.