Class iicm.utils3d.Ray
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iicm.utils3d.Ray

java.lang.Object
   |
   +----iicm.utils3d.Ray

public class Ray
extends Object
Ray - definition of a ray for picking purposes. Copyright (c) 1997 IICM

Variable Index

 o direction_
 o far_
 o near_
 o start_

Constructor Index

 o Ray(float, float, float, float, float, float, float, float)
create a ray, given by start coordinates, direction, and near/far ranges
 o Ray(float[], float[], float, float)
create a ray, given by start point, direction vector, and near/far picking ranges
 o Ray(Vec3f, Vec3f, float, float)
create a ray (as above).

Method Index

 o at(float)
tell where the ray is at a specific value of t.
 o toString()
string rep (for debugging)

Variables

 o start_
  public Vec3f start_
 o direction_
  public Vec3f direction_
 o near_
  public float near_
 o far_
  public float far_

Constructors

 o Ray
  public Ray(float start[],
             float direction[],
             float near,
             float far)
create a ray, given by start point, direction vector, and near/far picking ranges
 o Ray
  public Ray(Vec3f start,
             Vec3f direction,
             float near,
             float far)
create a ray (as above). Vec3f references taken over by Ray class
 o Ray
  public Ray(float sx,
             float sy,
             float sz,
             float dx,
             float dy,
             float dz,
             float near,
             float far)
create a ray, given by start coordinates, direction, and near/far ranges

Methods

 o at
  public Vec3f at(float t)
tell where the ray is at a specific value of t. ray equation: start + t * direction
See Also:
rayat
 o toString
  public String toString()
string rep (for debugging)
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index