Class TLspDirectionalLight


public class TLspDirectionalLight extends ALspDirectionalLight
A directional light with a user-specified direction vector.
Since:
2013.0
  • Constructor Details

    • TLspDirectionalLight

      public TLspDirectionalLight()
      Default constructor. The direction vector is set to ( 0, 0, 1 ), i.e. along the Z axis. The color is set to white.
    • TLspDirectionalLight

      public TLspDirectionalLight(Color aColor, ILcdPoint aDirectionVector)
      Creates a directional light with the given color and direction.
      Parameters:
      aColor - the light's color
      aDirectionVector - the light's direction vector (in world coordinates)
  • Method Details

    • getDirectionVector

      public ILcdPoint getDirectionVector()
      Description copied from class: ALspDirectionalLight
      Returns the vector pointing towards the light source. The vector is defined in world coordinates and does not have to be normalized.
      Specified by:
      getDirectionVector in class ALspDirectionalLight
      Returns:
      a vector towards the light
    • setDirectionVector

      public void setDirectionVector(ILcdPoint aDirectionVector)
      Sets the direction vector of the light.
      Parameters:
      aDirectionVector - the direction towards the light, in world coordinates
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ALspLight
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ALspLight