double Bounds::fitYForXFigD(double val, int res) const
{
double delta=std::max(_x_max-_x_min,_y_max-_y_min)/2.;
- double ret=val-(_y_max+_y_min)/2.+delta;
+ double ret=(_y_max+_y_min)/2.-val+delta;
delta=11.1375*res/(2.*delta);
return ret*delta;
}
{
stream << "2 1 0 1 ";
fillXfigStreamForLoc(stream);
- stream << " 7 50 -1 -1 0.000 0 0 -1 0 0 2" << std::endl;
+ stream << " 7 50 -1 -1 0.000 0 0 -1 1 0 2" << std::endl << "1 1 1.00 60.00 120.00" << std::endl;
direction?_start->dumpInXfigFile(stream,resolution,box):_end->dumpInXfigFile(stream,resolution,box);
direction?_end->dumpInXfigFile(stream,resolution,box):_start->dumpInXfigFile(stream,resolution,box);
stream << std::endl;