javax.media.j3d
Class PickPoint

java.lang.Object
  extended by javax.media.j3d.PickShape
      extended by javax.media.j3d.PickPoint

public final class PickPoint
extends PickShape

PickPoint is a pick shape defined as a single point. It can be used as an argument to the picking methods in BranchGroup and Locale.

See Also:
BranchGroup.pickAll(javax.media.j3d.PickShape), Locale.pickAll(javax.media.j3d.PickShape)

Constructor Summary
PickPoint()
          Constructs a PickPoint using a default point.
PickPoint(Point3d location)
          Constructs a PickPoint from the specified parameter.
 
Method Summary
 void get(Point3d location)
          Gets the position of this PickPoint.
 void set(Point3d location)
          Sets the position of this PickPoint to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickPoint

public PickPoint()
Constructs a PickPoint using a default point. The point is initialized to (0,0,0).


PickPoint

public PickPoint(Point3d location)
Constructs a PickPoint from the specified parameter.

Parameters:
location - the pick point.
Method Detail

set

public void set(Point3d location)
Sets the position of this PickPoint to the specified value.

Parameters:
location - the new pick point.

get

public void get(Point3d location)
Gets the position of this PickPoint.

Parameters:
location - returns the current pick point.