36 *
this =
Frame(lowerLeft.
x, lowerLeft.
y, upperRight.
x, upperRight.
y);
112 double xcenter = 0.5 * (
xMax +
xMin);
114 double ycenter = 0.5 * (
yMax +
yMin);
115 return Frame(xcenter - hxsize, ycenter - hysize, xcenter + hxsize, ycenter + hysize);
126 <<
", " <<
yMax <<
")";
rectangle with sides parallel to axes.
Frame rescale(const double factor) const
rescale it. The center does not move.
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)
Frame & operator*=(const Frame &right)
intersection of Frame's
Frame & operator+=(const Frame &right)
union of Frames
Frame operator+(const Frame &right) const
union of Frames
Class for a simple mapping implementing a generic AstrometryTransform.
T setprecision(T... args)