unlekker.geom
Class BBox

java.lang.Object
  extended by unlekker.geom.BBox

public class BBox
extends java.lang.Object

Bounding box for calculating centroids and dimensions of point data.

Author:
Marius Watz

Field Summary
 Vec3 center
           
 Vec3 dim
           
 Vec3 max
           
 Vec3 min
           
 
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
 

Field Detail

min

public Vec3 min

max

public Vec3 max

center

public Vec3 center

dim

public Vec3 dim
Constructor Detail

BBox

public BBox()
Method Detail

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