All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.BoundingSphere

java.lang.Object
   |
   +----java.media.j3d.Bounds
           |
           +----java.media.j3d.BoundingSphere

public class BoundingSphere
extends Bounds
A local coordinate center and radius of a bounding sphere.


Constructor Index

 o BoundingSphere()
Constructs and initializes a BoundingSphere with radius = 1 at 0 0 0.
 o BoundingSphere(Bounds)
Constructs and a BoundingSphere from a bounding object.
 o BoundingSphere(Bounds[])
Constructs and a BoundingSphere from an array of bounding objects.
 o BoundingSphere(Point3d, double)
Constructs and initializes a BoundingSphere from a center and radius.

Method Index

 o clone()
Creates a copy of the bounding sphere
 o combine(Bounds)
Combines this bounding sphere with a bounding object
 o combine(Bounds[])
Combines this bounding sphere with an array of bounding objects
 o combine(Point3d)
Combines this bounding sphere with a point
 o combine(Point3d[])
Combines this bounding sphere with an array of points
 o getCenter(Point3d)
Returns the position of this bounding sphere as a point.
 o getRadius()
Returns the radius of this bounding sphere as a double.
 o intersect(Bounds)
Test for intersection with another bounds object
 o intersect(Bounds, BoundingSphere)
Test for intersection with another bounds object
 o intersect(Bounds[])
Test for intersection with another bounds object
 o intersect(Bounds[], BoundingSphere)
Test for intersection with an array of bounds objects
 o intersect(Point3d)
Test for intersection with a point
 o intersect(Point3d, Point3d)
Test for intersection with a ray
 o set(Bounds)
Sets the the value of this BoundingSphere
 o setCenter(Point3d)
Sets the position of this bounding sphere from a point.
 o setRadius(double)
Sets the radius of this bounding sphere from a double.
 o transform(BoundingSphere, Transform3D)
This transforms this bounding sphere by the given matrix
 o transform(Transform3D)
This transforms the bounding sphere by the given matrix

Constructors

 o BoundingSphere
 public BoundingSphere(Point3d center,
                       double radius)
Constructs and initializes a BoundingSphere from a center and radius.

Parameters:
center - the center of the bounding sphere
radius - the radius of the bounding sphere
Returns:
a new BoundingSphere
 o BoundingSphere
 public BoundingSphere()
Constructs and initializes a BoundingSphere with radius = 1 at 0 0 0.

Returns:
a new BoundingSphere
 o BoundingSphere
 public BoundingSphere(Bounds boundsObject)
Constructs and a BoundingSphere from a bounding object.

Parameters:
boundsObject - is a bounds object
Returns:
a new BoundingSphere
 o BoundingSphere
 public BoundingSphere(Bounds boundsObjects[])
Constructs and a BoundingSphere from an array of bounding objects.

Parameters:
bounds - an array of bounds objects
Returns:
a new BoundingSphere

Methods

 o getRadius
 public double getRadius()
Returns the radius of this bounding sphere as a double.

Returns:
the radius of the bounding sphere
 o setRadius
 public void setRadius(double r)
Sets the radius of this bounding sphere from a double.

Parameters:
r - the new radius for the bounding sphere
 o getCenter
 public void getCenter(Point3d center)
Returns the position of this bounding sphere as a point.

Parameters:
center - a Point to receive the center of the bounding sphere
 o setCenter
 public void setCenter(Point3d center)
Sets the position of this bounding sphere from a point.

Parameters:
center - a Point defining the new center of the bounding sphere
 o set
 public void set(Bounds boundsObject)
Sets the the value of this BoundingSphere

Parameters:
boundsObject - is another bounds object
Overrides:
set in class Bounds
 o clone
 public Object clone()
Creates a copy of the bounding sphere

Returns:
returns a BoundingSphere
Overrides:
clone in class Bounds
 o combine
 public void combine(Bounds boundsObject)
Combines this bounding sphere with a bounding object

Parameters:
boundsObject - is another bounds object
Overrides:
combine in class Bounds
 o combine
 public void combine(Bounds boundsObjects[])
Combines this bounding sphere with an array of bounding objects

Parameters:
boundsObjects - is an array of bounds objects
Overrides:
combine in class Bounds
 o combine
 public void combine(Point3d point)
Combines this bounding sphere with a point

Parameters:
point - is a 3d point in space
Overrides:
combine in class Bounds
 o combine
 public void combine(Point3d points[])
Combines this bounding sphere with an array of points

Parameters:
points - is an array of 3d points in space
Overrides:
combine in class Bounds
 o transform
 public void transform(Transform3D matrix)
This transforms the bounding sphere by the given matrix

Parameters:
matrix - is a transformation matrix
Overrides:
transform in class Bounds
 o transform
 public void transform(BoundingSphere bounds,
                       Transform3D trans)
This transforms this bounding sphere by the given matrix

Overrides:
transform in class Bounds
 o intersect
 public 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
Overrides:
intersect in class Bounds
 o intersect
 public 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
Overrides:
intersect in class Bounds
 o intersect
 public 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
Overrides:
intersect in class Bounds
 o intersect
 public 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
Overrides:
intersect in class Bounds
 o intersect
 public boolean intersect(Bounds boundsObject,
                          BoundingSphere newBoundSphere)
Test for intersection with another bounds object

Parameters:
boundsObject - is another bounds object
newBoundSphere - is the new bounding sphere which is the intersection of the boundsObject and this BoundingSphere
Returns:
true or false indicating if an intersection occured
 o intersect
 public boolean intersect(Bounds boundsObjects[],
                          BoundingSphere newBoundSphere)
Test for intersection with an array of bounds objects

Parameters:
boundsObjects - is an array of bounds object
newBoundSphere - is the new bounding sphere which is the intersection of the boundsObject and this BoundingSphere
Returns:
true or false indicating if an intersection occured

All Packages  Class Hierarchy  This Package  Previous  Next  Index