public final class Box
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
noXdata |
private boolean |
noYdata |
(package private) double |
subdivDx |
(package private) double |
subdivDy |
(package private) double |
xmax |
(package private) double |
xmin |
(package private) double |
ymax |
(package private) double |
ymin |
Constructor and Description |
---|
Box() |
Box(double x,
double y) |
Box(double x0,
double y0,
double x1,
double y1) |
Box(Position p) |
Modifier and Type | Method and Description |
---|---|
boolean |
differentFrom(Box b,
double d) |
void |
enlarge(double f) |
void |
extendTo(Box b) |
void |
extendTo(double[] xp,
double[] yp) |
void |
extendTo(double x,
double y) |
void |
extendTo(Position p) |
void |
extendXTo(double x) |
void |
extendYTo(double y) |
Position |
getCenter() |
double |
getRadius() |
double |
getXmax() |
double |
getXmin() |
int |
getXSubdivision(double x) |
int |
getXSubdivision(double x,
int n) |
double |
getYmax() |
double |
getYmin() |
int |
getYSubdivision(double y) |
int |
getYSubdivision(double y,
int n) |
boolean |
hasData() |
Box |
makeCopy() |
void |
pad() |
void |
push(double[] x,
double[] y) |
void |
push(double x,
double y) |
void |
push(Position position) |
void |
pushX(double[] v) |
void |
pushX(double[] v,
int np) |
void |
pushY(double d) |
void |
pushY(double[] d) |
void |
pushY(double[] v,
int np) |
private boolean |
rangesDiffer(double a,
double b,
double c,
double d,
double delta) |
void |
setXMax(double d) |
void |
setXMin(double d) |
void |
setYMax(double d) |
void |
setYMin(double d) |
void |
subdivide(int n) |
void |
tidyLimits() |
java.lang.String |
toString() |
double xmin
double xmax
double ymin
double ymax
double subdivDx
double subdivDy
private boolean noXdata
private boolean noYdata
public Box(Position p)
public Box(double x, double y)
public Box()
public Box(double x0, double y0, double x1, double y1)
public Box makeCopy()
public java.lang.String toString()
toString
in class java.lang.Object
public void setXMin(double d)
public void setXMax(double d)
public void setYMin(double d)
public void setYMax(double d)
public double getXmin()
public double getXmax()
public double getYmin()
public double getYmax()
public void subdivide(int n)
public int getXSubdivision(double x)
public int getYSubdivision(double y)
public int getXSubdivision(double x, int n)
public int getYSubdivision(double y, int n)
public void extendTo(Position p)
public void extendTo(Box b)
public void extendTo(double[] xp, double[] yp)
public boolean hasData()
public void extendXTo(double x)
public void extendTo(double x, double y)
public void extendYTo(double y)
public void pad()
public void enlarge(double f)
public void push(double x, double y)
public void push(double[] x, double[] y)
public void pushX(double[] v)
public void pushX(double[] v, int np)
public void pushY(double d)
public void pushY(double[] d)
public void pushY(double[] v, int np)
public void push(Position position)
public boolean differentFrom(Box b, double d)
private boolean rangesDiffer(double a, double b, double c, double d, double delta)
public Position getCenter()
public double getRadius()
public void tidyLimits()
Copyright © 2013. All Rights Reserved.