|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.lightrays.raytracer.scene.SceneObject
apps.lightrays.raytracer.scene.geometry.Sphere
apps.lightrays.raytracer.scene.Light
public class Light
The Class Light.
Constructor Summary | |
---|---|
Light()
Instantiates a new light. |
|
Light(Point center)
Instantiates a new light. |
Method Summary | |
---|---|
double |
getBrightness()
Gets the brightness. |
Colour |
getColour()
Gets the colour. |
double |
getRelativeBrightness()
Gets the relative brightness. |
void |
setBrightness(double b)
Sets the brightness. |
void |
setRelativeBrightness(double b)
Sets the relative brightness. |
java.lang.String |
toString()
|
Methods inherited from class apps.lightrays.raytracer.scene.geometry.Sphere |
---|
createShader, getCenter, getNormal, intersect, set, setCenter, setRadius |
Methods inherited from class apps.lightrays.raytracer.scene.SceneObject |
---|
getOpticProperties, setOpticProperties, setScene |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Light()
public Light(Point center)
center
- the centerMethod Detail |
---|
public double getBrightness()
public Colour getColour()
public double getRelativeBrightness()
public void setBrightness(double b)
b
- the new brightnesspublic void setRelativeBrightness(double b)
b
- the new relative brightnesspublic java.lang.String toString()
toString
in class Sphere
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |