public class Box extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected javax.vecmath.Point3d |
center |
protected double |
xExtent |
protected double |
yExtent |
protected double |
zExtent |
| 构造器和说明 |
|---|
Box() |
Box(javax.vecmath.Point3d center,
double xAxis,
double yAxis,
double zAxis)
the constructor of Box
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contains(javax.vecmath.Point3d point)
test if this box contains the specified point
|
boolean |
contains(javax.vecmath.Point3d point,
double tolerance)
test if this box contains the specified point
|
javax.vecmath.Point3d |
getCenter() |
double |
getxExtent() |
double |
getyExtent() |
double |
getzExtent() |
double |
maxX() |
double |
maxY() |
double |
maxZ() |
double |
minX() |
double |
minY() |
double |
minZ() |
void |
setCenter(javax.vecmath.Point3d center) |
void |
setxExtent(double xExtent) |
void |
setyExtent(double yExtent) |
void |
setzExtent(double zExtent) |
protected javax.vecmath.Point3d center
protected double xExtent
protected double yExtent
protected double zExtent
public Box()
public Box(javax.vecmath.Point3d center,
double xAxis,
double yAxis,
double zAxis)
center - the center of box, the x/y/z cannot be NaNxAxis - the x-extent of box, cannot be NaN, must be positiveyAxis - the y-extent of box, cannot be NaN, must be positivezAxis - the z-extent of box, cannot be NaN, must be positiveIllegalArgumentException - x/z/z extent is NaN or negativepublic javax.vecmath.Point3d getCenter()
public void setCenter(javax.vecmath.Point3d center)
public double getxExtent()
public void setxExtent(double xExtent)
public double getyExtent()
public void setyExtent(double yExtent)
public double getzExtent()
public void setzExtent(double zExtent)
public double maxX()
public double minX()
public double maxY()
public double minY()
public double maxZ()
public double minZ()
public boolean contains(javax.vecmath.Point3d point)
point - the user-specified pointpublic boolean contains(javax.vecmath.Point3d point,
double tolerance)
point - the user-specified pointtolerance - the error within the tolerance is acceptableCopyright © 2019. All rights reserved.