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.
-
BoundingSphere()
- Constructs and initializes a BoundingSphere with radius = 1 at 0 0 0.
-
BoundingSphere(Bounds)
- Constructs and a BoundingSphere from a bounding object.
-
BoundingSphere(Bounds[])
- Constructs and a BoundingSphere from an array of bounding objects.
-
BoundingSphere(Point3d, double)
- Constructs and initializes a BoundingSphere from a center and radius.
-
clone()
- Creates a copy of the bounding sphere
-
combine(Bounds)
-
Combines this bounding sphere with a bounding object
-
combine(Bounds[])
-
Combines this bounding sphere with an array of bounding objects
-
combine(Point3d)
-
Combines this bounding sphere with a point
-
combine(Point3d[])
- Combines this bounding sphere with an array of points
-
getCenter(Point3d)
- Returns the position of this bounding sphere as a point.
-
getRadius()
- Returns the radius of this bounding sphere as a double.
-
intersect(Bounds)
- Test for intersection with another bounds object
-
intersect(Bounds, BoundingSphere)
- Test for intersection with another bounds object
-
intersect(Bounds[])
- Test for intersection with another bounds object
-
intersect(Bounds[], BoundingSphere)
- Test for intersection with an array of bounds objects
-
intersect(Point3d)
- Test for intersection with a point
-
intersect(Point3d, Point3d)
-
Test for intersection with a ray
-
set(Bounds)
- Sets the the value of this BoundingSphere
-
setCenter(Point3d)
- Sets the position of this bounding sphere from a point.
-
setRadius(double)
- Sets the radius of this bounding sphere from a double.
-
transform(BoundingSphere, Transform3D)
-
This transforms this bounding sphere by the given matrix
-
transform(Transform3D)
- This transforms the bounding sphere by the given matrix
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
BoundingSphere
public BoundingSphere()
- Constructs and initializes a BoundingSphere with radius = 1 at 0 0 0.
- Returns:
- a new BoundingSphere
BoundingSphere
public BoundingSphere(Bounds boundsObject)
- Constructs and a BoundingSphere from a bounding object.
- Parameters:
- boundsObject - is a bounds object
- Returns:
- a new BoundingSphere
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
getRadius
public double getRadius()
- Returns the radius of this bounding sphere as a double.
- Returns:
- the radius of the bounding sphere
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
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
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
set
public void set(Bounds boundsObject)
- Sets the the value of this BoundingSphere
- Parameters:
- boundsObject - is another bounds object
- Overrides:
- set in class Bounds
clone
public Object clone()
- Creates a copy of the bounding sphere
- Returns:
- returns a BoundingSphere
- Overrides:
- clone in class Bounds
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
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
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
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
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
transform
public void transform(BoundingSphere bounds,
Transform3D trans)
- This transforms this bounding sphere by the given matrix
- Overrides:
- transform in class Bounds
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
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
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
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
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
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