astex
Class Light

java.lang.Object
  extended by astex.Light

public class Light
extends java.lang.Object

Store the data for a light source.


Field Summary
 int diffuse
          Packed diffuse colour.
 boolean on
          Is the light on?
 double[] pos
          Position of the light.
 double power
          Sheen of highlight.
 int specular
          Packed specular colour.
 
Constructor Summary
Light(boolean onOff, double x, double y, double z, int d, int s, double pow)
          Default constructor.
 
Method Summary
 void normalisePos()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pos

public double[] pos
Position of the light.


diffuse

public int diffuse
Packed diffuse colour.


specular

public int specular
Packed specular colour.


power

public double power
Sheen of highlight.


on

public boolean on
Is the light on?

Constructor Detail

Light

public Light(boolean onOff,
             double x,
             double y,
             double z,
             int d,
             int s,
             double pow)
Default constructor.

Method Detail

normalisePos

public void normalisePos()