| java.lang.Object javax.media.j3d.PickShape javax.media.j3d.PickCone
All known Subclasses: javax.media.j3d.PickConeRay, javax.media.j3d.PickConeSegment,
PickCone | abstract public class PickCone extends PickShape (Code) | | PickCone is the abstract base class of all cone pick shapes.
since: Java 3D 1.2 |
Constructor Summary | |
public | PickCone() Constructs an empty PickCone.
The origin and direction of the cone are
initialized to (0,0,0). |
Method Summary | |
public void | getDirection(Vector3d direction) Gets the direction of this PickCone. | public void | getOrigin(Point3d origin) Gets the origin of this PickCone. | int | getPickType() | double | getRadius(double distance) Gets the radius of this PickCone at the specified distance. | public double | getSpreadAngle() Gets the spread angle of this PickCone. | Point3d | getStartPoint() | abstract boolean | intersect(Bounds bounds, Point4d pickPos) Return true if shape intersect with bounds. |
direction | Vector3d direction(Code) | | |
spreadAngle | double spreadAngle(Code) | | |
PickCone | public PickCone()(Code) | | Constructs an empty PickCone.
The origin and direction of the cone are
initialized to (0,0,0). The spread angle is initialized
to PI/64 .
|
getDirection | public void getDirection(Vector3d direction)(Code) | | Gets the direction of this PickCone.
Parameters: direction - the Vector3d object into which the directionwill be copied. |
getOrigin | public void getOrigin(Point3d origin)(Code) | | Gets the origin of this PickCone.
Parameters: origin - the Point3d object into which the origin will be copied. |
getPickType | int getPickType()(Code) | | |
getRadius | double getRadius(double distance)(Code) | | Gets the radius of this PickCone at the specified distance.
Parameters: distance - the distance from the origin at which we want the radius of the cone the radius at the specified distance |
getSpreadAngle | public double getSpreadAngle()(Code) | | Gets the spread angle of this PickCone.
the spread angle. |
getStartPoint | Point3d getStartPoint()(Code) | | |
intersect | abstract boolean intersect(Bounds bounds, Point4d pickPos)(Code) | | Return true if shape intersect with bounds.
The point of intersection is stored in pickPos.
|
|
|