apps.lightrays.raytracer.scene
Class ShadowRay

java.lang.Object
  extended by apps.lightrays.raytracer.scene.Ray
      extended by apps.lightrays.raytracer.scene.ShadowRay

public class ShadowRay
extends Ray

The Class ShadowRay.


Field Summary
 double attenuation
          The attenuation.
 double cosine
          The cosine.
 double light_brightness
          The light_brightness.
 
Fields inherited from class apps.lightrays.raytracer.scene.Ray
origin
 
Constructor Summary
ShadowRay(Scene scene, Point origin, Vector dir, int depth)
          Instantiates a new shadow ray.
 
Method Summary
 double attenuation()
          Attenuation.
 void shade(Colour c)
          Shade.
 
Methods inherited from class apps.lightrays.raytracer.scene.Ray
fire, getDepth, getDirection, getOrigin
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attenuation

public double attenuation
The attenuation.


cosine

public double cosine
The cosine.


light_brightness

public double light_brightness
The light_brightness.

Constructor Detail

ShadowRay

public ShadowRay(Scene scene,
                 Point origin,
                 Vector dir,
                 int depth)
Instantiates a new shadow ray.

Parameters:
scene - the scene
origin - the origin
dir - the dir
depth - the depth
Method Detail

attenuation

public final double attenuation()
Attenuation.

Returns:
the double

shade

public void shade(Colour c)
Description copied from class: Ray
Shade.

Parameters:
c - the c