javax.media.j3d
Class PickCylinderRay
java.lang.Object
javax.media.j3d.PickShape
javax.media.j3d.PickCylinder
javax.media.j3d.PickCylinderRay
public final class PickCylinderRay
- extends PickCylinder
PickCylinderRay is an infinite cylindrical ray pick shape. It can
be used as an argument to the picking methods in BranchGroup and Locale.
- Since:
- Java 3D 1.2
- See Also:
BranchGroup.pickAll(javax.media.j3d.PickShape)
,
Locale.pickAll(javax.media.j3d.PickShape)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PickCylinderRay
public PickCylinderRay()
- Constructs an empty PickCylinderRay.
The origin and direction of the cylindrical ray are
initialized to (0,0,0). The radius is initialized
to 0.
PickCylinderRay
public PickCylinderRay(Point3d origin,
Vector3d direction,
double radius)
- Constructs an infinite cylindrical ray pick shape from the specified
parameters.
- Parameters:
origin
- the origin of the cylindrical ray.direction
- the direction of the cylindrical ray.radius
- the radius of the cylindrical ray.
set
public void set(Point3d origin,
Vector3d direction,
double radius)
- Sets the parameters of this PickCylinderRay to the specified values.
- Parameters:
origin
- the origin of the cylindrical ray.direction
- the direction of the cylindrical ray.radius
- the radius of the cylindrical ray.
intersect
final boolean intersect(Bounds bounds,
Point4d pickPos)
- Return true if shape intersect with bounds.
The point of intersection is stored in pickPos.
- Specified by:
intersect
in class PickCylinder
- Parameters:
bounds
- the bounds object to checkpickPos
- the location of the point of intersection (not used for
method. Provided for compatibility).
transform
PickShape transform(Transform3D t3d)
- Specified by:
transform
in class PickShape
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.