|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom3d.Box3D
public class Box3D
Constructor Summary | |
---|---|
Box3D()
Empty constructor (size and position zero) |
|
Box3D(double x0,
double x1,
double y0,
double y1,
double z0,
double z1)
Main constructor, given bounds for x coord, bounds for y coord, and bounds for z coord. |
|
Box3D(Point3D p1,
Point3D p2)
Constructor from 2 points, giving extreme coordinates of the box. |
Method Summary | |
---|---|
double |
getDepth()
Returns the depth, i.e. the difference between the min and max z coord |
double |
getHeight()
Returns the height, i.e. the difference between the min and max y coord |
double |
getMaxX()
|
double |
getMaxY()
|
double |
getMaxZ()
|
double |
getMinX()
|
double |
getMinY()
|
double |
getMinZ()
|
double |
getWidth()
Returns the width, i.e. the difference between the min and max x coord |
Box3D |
intersection(Box3D box)
Returns the Box2D which is contained both by this box and by the specified box. |
Box3D |
union(Box3D box)
Returns the Box2D which contains both this box and the specified box. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Box3D()
public Box3D(double x0, double x1, double y0, double y1, double z0, double z1)
public Box3D(Point3D p1, Point3D p2)
Method Detail |
---|
public double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public double getMinZ()
public double getMaxZ()
public double getWidth()
public double getHeight()
public double getDepth()
public Box3D union(Box3D box)
box
- the bounding box to include
public Box3D intersection(Box3D box)
box
- the bounding box to include
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |