: Class PickRay

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.media.j3d
Class PickRay

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

public final class PickRay
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
`PickRay()` Create a PickRay.
`PickRay(Point3d origin, Vector3d direction)` Create a ray cast from `origin` in direction `direction`

Method Summary
`void` | `get(Point3d origin, Vector3d direction)` Get the ray
`void` | `set(Point3d origin, Vector3d direction)` Set the ray to point from `origin` in direction `direction`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PickRay

    public PickRay()

  Create a PickRay. The origin and direction of the ray are initialised to (0,0,0)

### PickRay

    public PickRay(Point3d origin,
                   Vector3d direction)

  Create a ray cast from `origin` in direction `direction`

Method Detail

### set

    public void set(Point3d origin,
                    Vector3d direction)

  Set the ray to point from `origin` in direction `direction`

### get

    public void get(Point3d origin,
                    Vector3d direction)

  Get the ray

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD