public class CanvasSize extends Object
Modifier and Type | Field and Description |
---|---|
double |
maxx
Maximum X
|
double |
maxy
Maximum Y
|
double |
minx
Minimum X
|
double |
miny
Minimum Y
|
Constructor and Description |
---|
CanvasSize(double minx,
double maxx,
double miny,
double maxy)
Constructor.
|
public final double minx
public final double maxx
public final double miny
public final double maxy
public CanvasSize(double minx, double maxx, double miny, double maxy)
minx
- Minimum Xmaxx
- Maximum Xminy
- Minimum Ymaxy
- Maximum Ypublic double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public double getDiffX()
public double getDiffY()
public double continueToMargin(double[] origin, double[] delta)
origin
- Origin pointdelta
- Direction vector