Class Ray

java.lang.Object
  |
  +--Ray

public class Ray
extends java.lang.Object

Ray stores a ray origin point and direction vector.


Field Summary
 Vector Direction
          Holds the ray direction
 Point Origin
          Holds the ray origin
 
Method Summary
 Point getPointAt(double t)
          Get a point along a ray.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Origin

public Point Origin
Holds the ray origin

Direction

public Vector Direction
Holds the ray direction
Method Detail

getPointAt

public Point getPointAt(double t)
Get a point along a ray. The return point is given by Origin + (t.Direction).
Parameters:
the - distance along the ray of the point
Returns:
a the point on the ray as specified.