public class TLspDirectionalLight extends ALspDirectionalLight
Constructor and Description |
---|
TLspDirectionalLight()
Default constructor.
|
TLspDirectionalLight(java.awt.Color aColor,
ILcdPoint aDirectionVector)
Creates a directional light with the given color and direction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ILcdPoint |
getDirectionVector()
Returns the vector pointing towards the light source.
|
int |
hashCode() |
void |
setDirectionVector(ILcdPoint aDirectionVector)
Sets the direction vector of the light.
|
getColor, setColor
addPropertyChangeListener, firePropertyChange, isEnabled, removePropertyChangeListener, setEnabled
public TLspDirectionalLight()
public TLspDirectionalLight(java.awt.Color aColor, ILcdPoint aDirectionVector)
aColor
- the light's coloraDirectionVector
- the light's direction vector (in world coordinates)public ILcdPoint getDirectionVector()
ALspDirectionalLight
getDirectionVector
in class ALspDirectionalLight
public void setDirectionVector(ILcdPoint aDirectionVector)
aDirectionVector
- the direction towards the light, in world coordinates