Class com.oroinc.yaray.World
All Packages Class Hierarchy This Package Previous Next Index
Class com.oroinc.yaray.World
java.lang.Object
|
+----com.oroinc.yaray.World
- public class World
- extends Object
The world through which rays are traced to generate a picture.
Copyright © 1996, 1997 Original Reusable Objects, Inc.
All rights reserved.
- Author:
- Daniel F. Savarese
-
currentDepth
-
-
EPSILON
-
-
eye
-
-
lights
-
-
MAX_DEPTH
- Maximum recursion depth.
-
objects
-
-
World()
-
-
raytrace(IntersectionRay, Color)
- Trace the ray, checking for intersection with each object
in the world.
MAX_DEPTH
public final static int MAX_DEPTH
- Maximum recursion depth. Limits the number of reflections.
EPSILON
public final static float EPSILON
currentDepth
public int currentDepth
eye
public Point eye
objects
public WorldObject objects[]
lights
public Light lights[]
World
public World()
raytrace
public void raytrace(IntersectionRay ray,
Color color)
- Trace the ray, checking for intersection with each object
in the world. If there is an intersection, compute the
color at the point of intersection, otherwise return black.
The color is returned via the color reference parameter.
This method can only be called recursively a maximum of MAX_DEPTH
times for any instance of a World object.
All Packages Class Hierarchy This Package Previous Next Index