Modifier and Type | Field and Description |
---|---|
protected Point |
anchor |
protected Vector[] |
bases |
double[] |
extents |
Constructor and Description |
---|
OBB(Point anchor,
Vector[] bases,
double[] extents) |
OBB(Point anchor,
Vector xdir,
Vector ydir,
Vector zdir) |
Modifier and Type | Method and Description |
---|---|
OBB |
clone()
Make a deep clone this volume.
|
static OBB |
createBoundingBox_Covariance(PointList points) |
static OBB |
createBoxFromBases(Vector[] bases,
java.util.List<Point> points)
Creates a bounding box enclosing the points in
points using the supplied
bases. |
double |
cutArealYZ() |
Point |
getAnchor() |
Vector[] |
getBases() |
Point |
getCenter()
Get the geometric center of the shape.
|
Point[] |
getVertices() |
double |
getVolume()
Get the volume.
|
Vector |
getXDir() |
Vector |
getYDir() |
Vector |
getZDir() |
boolean |
overlaps(OBB b)
Returns true iff this box has an overlap with b.
|
boolean |
overlaps(Volume s)
Determine if this volume overlaps vol.
|
void |
setAnchor(Point pos) |
java.lang.String |
toString() |
double |
volume() |
protected Point anchor
protected Vector[] bases
public double[] extents
public Point getAnchor()
public Vector getXDir()
public Vector getYDir()
public Vector getZDir()
public Vector[] getBases()
public void setAnchor(Point pos)
public double cutArealYZ()
public static OBB createBoxFromBases(Vector[] bases, java.util.List<Point> points)
points
using the supplied
bases.public boolean overlaps(OBB b)
public Point getCenter()
Shape
public Point[] getVertices()
public boolean overlaps(Volume s)
Volume
public double volume()
public java.lang.String toString()
toString
in class java.lang.Object