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.
|
Vector3d |
getMax()
Gets the max.
|
Vector3d |
getMin()
Gets the min.
|
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)