Aviatrix3D
2.1.0

org.j3d.aviatrix3d
Class BoundsUtils

java.lang.Object
  extended by org.j3d.aviatrix3d.BoundsUtils

public class BoundsUtils
extends java.lang.Object

Utility functionality for bounds management.

Version:
$Revision: 1.6 $
Author:
Justin Couch

Constructor Summary
BoundsUtils()
          Construct a default instance of the utils
 
Method Summary
 void combine(BoundingVolume parent, BoundingVolume child)
          Ensure that the parent bounds contains the child bounds entirely.
 void combine(BoundingVolume parent, float[] point)
          Ensure that the parent bounds contains the child bounds entirely.
 void contain(BoundingVolume parent, BoundingVolume[] children)
          Set the parent bounds to be the smallest container of the child bounds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundsUtils

public BoundsUtils()
Construct a default instance of the utils

Method Detail

combine

public void combine(BoundingVolume parent,
                    BoundingVolume child)
Ensure that the parent bounds contains the child bounds entirely. It is assumed that the bounds are in the same coordinate system.

Parameters:
parent - The parent bound to expand to include this bounds
child - The child to make sure the parent contains

combine

public void combine(BoundingVolume parent,
                    float[] point)
Ensure that the parent bounds contains the child bounds entirely. It is assumed that the bounds are in the same coordinate system.

Parameters:
parent - The parent bound to expand to include this point
point - Coordinates of the point to make sure the bounds include

contain

public void contain(BoundingVolume parent,
                    BoundingVolume[] children)
Set the parent bounds to be the smallest container of the child bounds. The value of the containing bounds will be set to the minimal container.

Parameters:
parent - The bounds to set to contain the children
children - Listing of all the bounds to contain

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org