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
-
direction
- The direction the ray is being traced.
-
extent
- The current length of the ray as it is being traced.
-
origin
- The origin of the ray.
-
Ray()
- Creates a ray of extent 0 with origin (0, 0, 0) and no direction
(i.e., a vector pointing nowhere [0, 0, 0]).
-
endpoint()
- Returns the endpoint of the ray.
origin
public Point origin
- The origin of the ray.
direction
public GeometricVector direction
- The direction the ray is being traced.
extent
public float extent
- The current length of the ray as it is being traced.
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]).
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