de.jreality.geometry
Class BoundingBoxUtility
java.lang.Object
de.jreality.geometry.BoundingBoxUtility
public class BoundingBoxUtility
- extends Object
BoundingBoxUtility
public BoundingBoxUtility()
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: