public final class PickRay extends PickShape
| Modifier and Type | Field and Description |
|---|---|
(package private) Vector3d |
direction |
(package private) Point3d |
origin |
PICKBOUNDINGBOX, PICKBOUNDINGPOLYTOPE, PICKBOUNDINGSPHERE, PICKCONE, PICKCYLINDER, PICKPOINT, PICKRAY, PICKSEGMENT, PICKUNKNOWN| Constructor and Description |
|---|
PickRay()
Constructs an empty PickRay.
|
PickRay(Point3d origin,
Vector3d direction)
Constructs an infinite ray pick shape from the specified
parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
get(Point3d origin,
Vector3d direction)
Retrieves the parameters from this PickRay.
|
(package private) int |
getPickType() |
(package private) Point3d |
getStartPoint() |
(package private) boolean |
intersect(Bounds bounds,
Point4d pickPos)
Return true if shape intersect with bounds.
|
void |
set(Point3d origin,
Vector3d direction)
Sets the parameters of this PickRay to the specified values.
|
(package private) PickShape |
transform(Transform3D t3d) |
public PickRay()
public void set(Point3d origin, Vector3d direction)
origin - the origin of the ray.direction - the direction of the ray.public void get(Point3d origin, Vector3d direction)
origin - the Point3d object into which the origin will be copied.direction - the Vector3d object into which the direction
will be copied.final boolean intersect(Bounds bounds, Point4d pickPos)
PickShape transform(Transform3D t3d)
Point3d getStartPoint()
getStartPoint in class PickShapeint getPickType()
getPickType in class PickShapeCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.