public class Box3D extends Object
Constructor and Description |
---|
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.
|
Box3D(javax.vecmath.Tuple3d p1,
javax.vecmath.Tuple3d p2) |
Modifier and Type | Method and Description |
---|---|
double |
getDepth()
Returns the depth, i.e.
|
double |
getHeight()
Returns the height, i.e.
|
double |
getMaxX() |
double |
getMaxY() |
double |
getMaxZ() |
double |
getMinX() |
double |
getMinY() |
double |
getMinZ() |
double |
getWidth()
Returns the width, i.e.
|
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.
|
public Box3D()
public Box3D(double x0, double x1, double y0, double y1, double z0, double z1)
public Box3D(Point3D p1, Point3D p2)
public Box3D(javax.vecmath.Tuple3d p1, javax.vecmath.Tuple3d p2)
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 includeCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.