apps.lightrays.raytracer.scene
Class Light

java.lang.Object
  extended by apps.lightrays.raytracer.scene.SceneObject
      extended by apps.lightrays.raytracer.scene.geometry.Sphere
          extended by apps.lightrays.raytracer.scene.Light

public class Light
extends Sphere

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

Light

public Light()
Instantiates a new light.


Light

public Light(Point center)
Instantiates a new light.

Parameters:
center - the center
Method Detail

getBrightness

public double getBrightness()
Gets the brightness.

Returns:
the brightness

getColour

public Colour getColour()
Gets the colour.

Returns:
the colour

getRelativeBrightness

public double getRelativeBrightness()
Gets the relative brightness.

Returns:
the relative brightness

setBrightness

public void setBrightness(double b)
Sets the brightness.

Parameters:
b - the new brightness

setRelativeBrightness

public void setRelativeBrightness(double b)
Sets the relative brightness.

Parameters:
b - the new relative brightness

toString

public java.lang.String toString()
Overrides:
toString in class Sphere