public class Bounds
extends java.lang.Object
| Constructor and Description |
|---|
Bounds(Vector3d min,
Vector3d max)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Bounds |
clone() |
boolean |
contains(Polygon p)
Indicates whether the specified polygon is contained within this bounding
box (check includes box boundary).
|
boolean |
contains(Transform com) |
boolean |
contains(Vector3d v)
Indicates whether the specified point is contained within this bounding
box (check includes box boundary).
|
boolean |
contains(Vertex v)
Indicates whether the specified vertex is contained within this bounding
box (check includes box boundary).
|
Vector3d |
getBounds()
Returns the bounds (width,height,depth).
|
Vector3d |
getCenter()
Returns the position of the center.
|
double |
getCenterX()
Helper function wrapping bounding box values
|
double |
getCenterY()
Helper function wrapping bounding box values
|
double |
getCenterZ()
Helper function wrapping bounding box values
|
Vector3d |
getMax()
Gets the max.
|
double |
getMaxX()
Helper function wrapping bounding box values
|
double |
getMaxY()
Helper function wrapping bounding box values
|
double |
getMaxZ()
Helper function wrapping bounding box values
|
Vector3d |
getMin()
Gets the min.
|
double |
getMinX()
Helper function wrapping bounding box values
|
double |
getMinY()
Helper function wrapping bounding box values
|
double |
getMinZ()
Helper function wrapping bounding box values
|
double |
getTotalX()
Helper function wrapping bounding box values
|
double |
getTotalY()
Helper function wrapping bounding box values
|
double |
getTotalZ()
Helper function wrapping bounding box values
|
boolean |
intersects(Bounds b)
Indicates whether the specified bounding box intersects with this
bounding box (check includes box boundary).
|
boolean |
intersects(Polygon p)
Deprecated.
not implemented yet
|
CSG |
toCSG()
Returns this bounding box as csg.
|
Cube |
toCube()
Returns this bounding box as cube.
|
java.lang.String |
toString() |
public Bounds clone()
clone in class java.lang.Objectpublic Vector3d getCenter()
public Vector3d getBounds()
public CSG toCSG()
public Cube toCube()
public boolean contains(Vertex v)
v - vertex to checktrue if the vertex is contained within this bounding box;
false otherwisepublic boolean contains(Vector3d v)
v - vertex to checktrue if the point is contained within this bounding box;
false otherwisepublic boolean contains(Polygon p)
p - polygon to checktrue if the polygon is contained within this bounding
box; false otherwise@Deprecated public boolean intersects(Polygon p)
p - polygon to checktrue if the polygon intersects this bounding box;
false otherwisepublic boolean intersects(Bounds b)
b - box to checktrue if the bounding box intersects this bounding box;
false otherwisepublic Vector3d getMin()
public Vector3d getMax()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean contains(Transform com)
public double getCenterX()
public double getCenterY()
public double getCenterZ()
public double getMaxX()
public double getMaxY()
public double getMaxZ()
public double getMinX()
public double getMinY()
public double getMinZ()
public double getTotalX()
public double getTotalY()
public double getTotalZ()