17 double xtmin1, xtmax1, ytmin1, ytmax1;
18 gtransfo.
apply(inputframe.
xMin, inputframe.
yMin, xtmin1, ytmin1);
19 gtransfo.
apply(inputframe.
xMax, inputframe.
yMax, xtmax1, ytmax1);
20 Frame fr1(std::min(xtmin1, xtmax1), std::min(ytmin1, ytmax1), std::max(xtmin1, xtmax1),
21 std::max(ytmin1, ytmax1));
23 double xtmin2, xtmax2, ytmin2, ytmax2;
24 gtransfo.
apply(inputframe.
xMin, inputframe.
yMax, xtmin2, ytmax2);
25 gtransfo.
apply(inputframe.
xMax, inputframe.
yMin, xtmax2, ytmin2);
26 Frame fr2(std::min(xtmin2, xtmax2), std::min(ytmin2, ytmax2), std::max(xtmin2, xtmax2),
27 std::max(ytmin2, ytmax2));
double xMin
coordinate of boundary.
rectangle with sides parallel to axes.
Class for a simple mapping implementing a generic Gtransfo.
a virtual (interface) class for geometric transformations.
Frame applyTransfo(const Frame &inputframe, const Gtransfo >ransfo, const WhichTransformed which)
Transform a Frame through a Transfo.
virtual void apply(const double xIn, const double yIn, double &xOut, double &yOut) const =0