All Packages Class Hierarchy This Package Previous Next Index
Class javax.media.j3d.Bounds
java.lang.Object
|
+----javax.media.j3d.Bounds
- public abstract class Bounds
- extends Object
- implements Cloneable
Abstract class for bounding objects.
Sub-classes are BoundingSphere, BoundingBox and BoundingPolytope
-
Bounds()
-
-
clone()
- Makes a copy of a bounds object.
-
combine(Bounds)
- Combines this bounding object with a bounding object so that the
resulting bounding object encloses the original bounding object and the
given bounds object.
-
combine(Bounds[])
-
Combines this bounding object with an array of bounding objects so that the
resulting bounding object encloses the original bounding object and the
given array of bounds object.
-
combine(Point3d)
- Combines this bounding object with a point
-
combine(Point3d[])
- Combines this bounding object with an array of points
-
intersect(Bounds)
- Test for intersection with another bounds object
-
intersect(Bounds[])
- Test for intersection with another bounds object
-
intersect(Point3d)
- Test for intersection with a point
-
intersect(Point3d, Point3d)
- Test for intersection with a ray
-
isEmpty()
-
Tests if any objects are in a bounding object
-
set(Bounds)
- Sets the position of this bounding object from a point.
-
transform(Bounds, Transform3D)
- Modifies the bounding object so that it bounds the volume
generated by transforming the given bounding object.
-
transform(Transform3D)
- This transforms this bounding object by the given matrix
Bounds
public Bounds()
clone
public abstract Object clone()
- Makes a copy of a bounds object.
- Overrides:
- clone in class Object
intersect
public abstract boolean intersect(Point3d origin,
Point3d direction)
- Test for intersection with a ray
- Parameters:
- 1 - origin is a the starting point of the ray
- 2 - direction is the direction of the ray
- Returns:
- true or false indicating if an intersection occured
intersect
public abstract boolean intersect(Point3d point)
- Test for intersection with a point
- Parameters:
- point - is a point defining a position in 3-space
- Returns:
- true or false indicating if an intersection occured
intersect
public abstract boolean intersect(Bounds boundsObject)
- Test for intersection with another bounds object
- Parameters:
- boundsObject - is another bounds object
- Returns:
- true or false indicating if an intersection occured
intersect
public abstract boolean intersect(Bounds boundsObjects[])
- Test for intersection with another bounds object
- Parameters:
- boundsObjects - is an array of bounding objects
- Returns:
- true or false indicating if an intersection occured
combine
public abstract void combine(Bounds boundsObject)
- Combines this bounding object with a bounding object so that the
resulting bounding object encloses the original bounding object and the
given bounds object.
- Parameters:
- boundsObject - is another bounds object
combine
public abstract void combine(Bounds boundsObjects[])
- Combines this bounding object with an array of bounding objects so that the
resulting bounding object encloses the original bounding object and the
given array of bounds object.
- Parameters:
- boundsObjects - is an array of bounds objects
combine
public abstract void combine(Point3d point)
- Combines this bounding object with a point
- Parameters:
- point - is a 3d point in space
combine
public abstract void combine(Point3d points[])
- Combines this bounding object with an array of points
- Parameters:
- points - is an array of 3d points in space
transform
public abstract void transform(Transform3D trans)
- This transforms this bounding object by the given matrix
transform
public abstract void transform(Bounds bounds,
Transform3D trans)
- Modifies the bounding object so that it bounds the volume
generated by transforming the given bounding object.
- Parameters:
- boundsObject - is the bounding object to be transformed
- matrix - is a transformation matrix
isEmpty
public abstract boolean isEmpty()
- Tests if any objects are in a bounding object
set
public abstract void set(Bounds boundsObject)
- Sets the position of this bounding object from a point.
- Parameters:
- center - a Point defining the new center of the bounding object
All Packages Class Hierarchy This Package Previous Next Index