|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectapps.lightrays.raytracer.scene.Ray
public class Ray
The Class Ray.
| Field Summary | |
|---|---|
Point |
origin
The origin. |
| Constructor Summary | |
|---|---|
Ray(Scene scene,
Point origin,
Vector direction,
int depth)
Instantiates a new ray. |
|
| Method Summary | |
|---|---|
void |
fire(Colour c)
Fire. |
int |
getDepth()
Gets the depth. |
Vector |
getDirection()
Gets the direction. |
Point |
getOrigin()
Gets the origin. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Point origin
| Constructor Detail |
|---|
public Ray(Scene scene,
Point origin,
Vector direction,
int depth)
scene - the sceneorigin - the origindirection - the directiondepth - the depth| Method Detail |
|---|
public void fire(Colour c)
c - the cpublic int getDepth()
public Vector getDirection()
public Point getOrigin()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||