new plotter

This commit is contained in:
Sergey Solovyev
2013-01-19 21:41:13 +04:00
parent 220952ef9b
commit 8d2a0458e2
9 changed files with 207 additions and 249 deletions

View File

@@ -25,10 +25,10 @@ public final class PlotBoundaries implements Serializable {
}
PlotBoundaries(float xMin, float xMax, float yMin, float yMax) {
this.xMin = xMin;
this.xMax = xMax;
this.yMin = yMin;
this.yMax = yMax;
this.xMin = Math.min(xMin, xMax);
this.xMax = Math.max(xMin, xMax);
this.yMin = Math.min(yMin, yMax);
this.yMax = Math.max(yMin, yMax);
}
@NotNull