|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.lightrays.raytracer.scene.Ray
apps.lightrays.raytracer.scene.ShadowRay
public class ShadowRay
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 |
---|
public double attenuation
public double cosine
public double light_brightness
Constructor Detail |
---|
public ShadowRay(Scene scene, Point origin, Vector dir, int depth)
scene
- the sceneorigin
- the origindir
- the dirdepth
- the depthMethod Detail |
---|
public final double attenuation()
public void shade(Colour c)
Ray
c
- the c
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |