2 #ifndef LSST_JOINTCAL_FRAME_H 3 #define LSST_JOINTCAL_FRAME_H 29 Frame(
double xMin,
double yMin,
double xMax,
double yMax);
59 void cutMargin(
const double marginX,
const double marginY);
74 bool inFrame(
double x,
double y)
const;
96 #endif // LSST_JOINTCAL_FRAME_H bool operator!=(const Frame &right) const
comparison
Frame operator+(const Frame &right) const
union of Frames
void cutMargin(const double marginSize)
shrinks the frame (if marginSize>0), enlarges it (if marginSize<0).
double xMin
coordinate of boundary.
Frame()
Default constructor.
Frame rescale(const double factor) const
rescale it. The center does not move.
double getHeight() const
size along y axis
rectangle with sides parallel to axes.
void dump(std::ostream &stream=std::cout) const
A base class for image defects.
double minDistToEdges(const Point &point) const
distance to closest boundary.
friend std::ostream & operator<<(std::ostream &stream, const Frame &right)
allows
double getWidth() const
size along x axis
bool inFrame(double x, double y) const
inside?
Point getCenter() const
Center of the frame.
bool inFrame(const Point &point) const
same as above
Frame & operator*=(const Frame &right)
intersection of Frame's
bool operator==(const Frame &right) const
necessary for comparisons (!= is defined from this one implicitely)
Frame operator*(const Frame &right) const
intersection of Frame's.
Frame & operator+=(const Frame &right)
union of Frames