unlekker.geom
Class BBox
java.lang.Object
unlekker.geom.BBox
public class BBox
- extends java.lang.Object
Bounding box for calculating centroids and dimensions of point data.
- Author:
- Marius Watz
Constructor Summary |
BBox()
|
Method Summary |
void |
addPoint(float _x,
float _y,
float _z)
Check new point against current bounding box. |
float |
getDim()
|
void |
reset()
Reset bounding box for new calculation. |
void |
scale(float tx,
float ty,
float tz)
|
java.lang.String |
toString()
|
void |
translate(float tx,
float ty,
float tz)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
min
public Vec3 min
max
public Vec3 max
center
public Vec3 center
dim
public Vec3 dim
BBox
public BBox()
reset
public void reset()
- Reset bounding box for new calculation.
addPoint
public void addPoint(float _x,
float _y,
float _z)
- Check new point against current bounding box.
getDim
public float getDim()
translate
public void translate(float tx,
float ty,
float tz)
scale
public void scale(float tx,
float ty,
float tz)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object