javax.media.j3d
Class PickSegment

java.lang.Object
  |
  +--javax.media.j3d.PickShape
        |
        +--javax.media.j3d.PickSegment

public final class PickSegment
extends PickShape

PickRay is an encapsulation of ray for passing to the pick methods in BranchGroup and Locale

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

Constructor Summary
PickSegment()
          Create a PickSegment.
PickSegment(Point3d start, Point3d end)
          Create a line segment from start point to end point
 
Method Summary
 void get(Point3d start, Point3d end)
          Get the line segment
 void set(Point3d start, Point3d end)
          Set the line segment from start point to end point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickSegment

public PickSegment()
Create a PickSegment. The start and end of the segment are initialised to (0,0,0)

PickSegment

public PickSegment(Point3d start,
                   Point3d end)
Create a line segment from start point to end point
Method Detail

set

public void set(Point3d start,
                Point3d end)
Set the line segment from start point to end point

get

public void get(Point3d start,
                Point3d end)
Get the line segment