|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ProGAL.geom3d.volumes.OBB
public class OBB
Field Summary | |
---|---|
double[] |
extents
|
Constructor Summary | |
---|---|
OBB(Point anchor,
Vector[] bases,
double[] extents)
|
|
OBB(Point anchor,
Vector xdir,
Vector ydir,
Vector zdir)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double[] extents
Constructor Detail |
---|
public OBB(Point anchor, Vector xdir, Vector ydir, Vector zdir)
public OBB(Point anchor, Vector[] bases, double[] extents)
Method Detail |
---|
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 createBoundingBox_Covariance(PointList points)
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
getCenter
in interface Shape
public Point[] getVertices()
public boolean overlaps(Volume s)
Volume
overlaps
in interface Volume
public double volume()
public OBB clone()
Volume
clone
in interface Volume
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public double getVolume()
Volume
getVolume
in interface Volume
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |