de.jreality.geometry
Class BoundingBoxUtility

java.lang.Object
  extended by de.jreality.geometry.BoundingBoxUtility

public class BoundingBoxUtility
extends Object


Constructor Summary
BoundingBoxUtility()
           
 
Method Summary
static Rectangle3D calculateBoundingBox(double[][] verts)
          Calculate the bounding box of the vertices verts.
static Rectangle3D calculateBoundingBox(double[] initialMatrix, SceneGraphComponent sgc)
          Calculate the bounding box assuming that the scene graph is first transformed by the matrix initialMatrix
static Rectangle3D calculateBoundingBox(PointSet ps)
           
static Rectangle3D calculateBoundingBox(SceneGraphComponent sgc)
           
static Rectangle3D calculateBoundingBox(Sphere sph)
           
static Rectangle3D calculateChildrenBoundingBox(SceneGraphComponent sgc)
          Calculate the bounding box for the scene graph tooted at sgc but do not apply the transformation, if any, attached to sgc.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundingBoxUtility

public BoundingBoxUtility()
Method Detail

calculateBoundingBox

public static Rectangle3D calculateBoundingBox(double[] initialMatrix,
                                               SceneGraphComponent sgc)
Calculate the bounding box assuming that the scene graph is first transformed by the matrix initialMatrix

Parameters:
tmp -
sgc -
Returns:

calculateBoundingBox

public static Rectangle3D calculateBoundingBox(double[][] verts)
Calculate the bounding box of the vertices verts. These may be 3- or 4-d points.

Parameters:
verts -
Returns:
Pn for details.

calculateBoundingBox

public static Rectangle3D calculateBoundingBox(PointSet ps)

calculateBoundingBox

public static Rectangle3D calculateBoundingBox(SceneGraphComponent sgc)

calculateBoundingBox

public static Rectangle3D calculateBoundingBox(Sphere sph)

calculateChildrenBoundingBox

public static Rectangle3D calculateChildrenBoundingBox(SceneGraphComponent sgc)
Calculate the bounding box for the scene graph tooted at sgc but do not apply the transformation, if any, attached to sgc.

Parameters:
sgc -
Returns: