com.jogamp.opengl.math

## Class Ray

- java.lang.Object
- - com.jogamp.opengl.math.Ray

-     public class Ray
      extends Object

  Simple compound denoting a ray.

  A ray, also known as a half line, consists out of it's origin and direction. Hence it is bound to only the origin side, where the other end is +infinitive.

       R(t) = R0 + Rd * t with R0 origin, Rd direction and t > 0.0

  A `Ray` maybe used for picking using a `bounding box`.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `float[]` | `dir` Normalized direction vector of ray, float[3].
    `float[]` | `orig` Origin of Ray, float[3].

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Ray()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### orig

          public final float[] orig

      Origin of Ray, float[3].

    - #### dir

          public final float[] dir

      Normalized direction vector of ray, float[3].

  - ### Constructor Detail

    - #### Ray

          public Ray()

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright 2010 JogAmp Community.