Class com.oroinc.yaray.Ray
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.oroinc.yaray.Ray

java.lang.Object
   |
   +----com.oroinc.yaray.Ray

public class Ray
extends Object
This class represents a ray that is traced from a point of origin int the world.

Copyright © 1996, 1997 Original Reusable Objects, Inc. All rights reserved.

Author:
Daniel F. Savarese

Variable Index

 o direction
The direction the ray is being traced.
 o extent
The current length of the ray as it is being traced.
 o origin
The origin of the ray.

Constructor Index

 o Ray()
Creates a ray of extent 0 with origin (0, 0, 0) and no direction (i.e., a vector pointing nowhere [0, 0, 0]).

Method Index

 o endpoint()
Returns the endpoint of the ray.

Variables

 o origin
  public Point origin
The origin of the ray.
 o direction
  public GeometricVector direction
The direction the ray is being traced.
 o extent
  public float extent
The current length of the ray as it is being traced.

Constructors

 o Ray
  public Ray()
Creates a ray of extent 0 with origin (0, 0, 0) and no direction (i.e., a vector pointing nowhere [0, 0, 0]).

Methods

 o endpoint
  public Point endpoint()
Returns the endpoint of the ray.

Returns:
The point defining the location of the end of the ray.

All Packages  Class Hierarchy  This Package  Previous  Next  Index