go
Class GoLight

java.lang.Object
  |
  +--go.GoLight

public class GoLight
extends java.lang.Object


Field Summary
 int type
          DIRECTIONAL or POSITIONAL
 double x
          x component of light direction/position.
 double y
          y component of light direction/position.
 double z
          z component of light direction/position.
 
Constructor Summary
GoLight()
          Constructor for a light definition.
GoLight(int type, double x, double y, double z)
          Constructor for a light definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public int type
DIRECTIONAL or POSITIONAL

x

public double x
x component of light direction/position.

y

public double y
y component of light direction/position.

z

public double z
z component of light direction/position.
Constructor Detail

GoLight

public GoLight()
Constructor for a light definition.

Equivalent to:

GoLight(Go.DIRECTIONAL, 0, 0, 1)

GoLight

public GoLight(int type,
               double x,
               double y,
               double z)
Constructor for a light definition.

A light is defined where type is equal to DIRECTIONAL or POSITIONAL and a direction/position value equal to (x, y, z). See light for more information.