lsst.jointcal
21.0.0-5-gcff38f6+f4fb272da2
|
Go to the documentation of this file.
36 *
this =
Frame(lowerLeft.
x, lowerLeft.
y, upperRight.
x, upperRight.
y);
42 yMin =
min(ymin, ymax);
43 yMax =
max(ymin, ymax);
50 return min(
min(point.
x - xMin, xMax - point.
x) ,
51 min(point.
y - yMin, yMax - point.
y) );
65 xMin =
max(xMin, rightCopy.
xMin);
70 if (xMin > xMax || yMin > yMax) *
this =
Frame();
85 xMin =
min(xMin, rightCopy.
xMin);
93 if (xMin > xMax)
swap(xMin, xMax);
94 if (yMin > yMax)
swap(yMin, yMax);
98 return ((xMin ==
right.xMin) && (xMax ==
right.xMax) && (yMin ==
right.yMin) && (yMax ==
right.yMax));
111 double hxsize =
fabs(factor * 0.5 * (xMax - xMin));
112 double xcenter = 0.5 * (xMax + xMin);
113 double hysize =
fabs(factor * 0.5 * (yMax - yMin));
114 double ycenter = 0.5 * (yMax + yMin);
115 return Frame(xcenter - hxsize, ycenter - hysize, xcenter + hxsize, ycenter + hysize);
121 return ((
x <= xMax) && (
y <= yMax) && (
x >= xMin) && (
y >= yMin));
125 stream <<
"xmin ymin " << xMin <<
' ' << yMin <<
" xmax ymax " << xMax <<
' ' << yMax <<
endl;
Frame operator+(const Frame &right) const
union of Frames
Frame rescale(const double factor) const
rescale it. The center does not move.
void print(std::ostream &out) const
Frame & operator*=(const Frame &right)
intersection of Frame's
Frame & operator+=(const Frame &right)
union of Frames
double xMin
coordinate of boundary.
void cutMargin(const double marginSize)
shrinks the frame (if marginSize>0), enlarges it (if marginSize<0).
std::unique_ptr< SchemaItem< U > > result
Frame operator*(const Frame &right) const
intersection of Frame's.
Class for a simple mapping implementing a generic AstrometryTransform.
double minDistToEdges(const Point &point) const
distance to closest boundary.
Frame()
Default constructor.
bool inFrame(double x, double y) const
inside?
rectangle with sides parallel to axes.
bool operator==(const Frame &right) const
necessary for comparisons (!= is defined from this one implicitely)