Class dnx.ice.PointLight
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.ice.PointLight

java.lang.Object
   |
   +----dnx.ice.Light
           |
           +----dnx.ice.PointLight

public class PointLight
extends Light
Localized light source.

Constructor Index

 o PointLight()
Create a point light source at the origin with default colors and no distance attenuation.
 o PointLight(float, float, float)
Create a point light source at point (x, y, z) with default colors and no distance attenuation.

Method Index

 o getIlluminationRadius()
 o getPosition(Point3)
Get the position of the light source.
 o setAttenuation(float, float, float)
Set how the light diminishes with distance from the source.
 o setIlluminationRadius(float)
Set the maximum distance from this light source at which objects may still be illuminated by it.
 o setPosition(float, float, float)
Set the position of the light source.
 o setPosition(Point3)
Set the position of the light source.

Constructors

 o PointLight
  public PointLight()
Create a point light source at the origin with default colors and no distance attenuation.
 o PointLight
  public PointLight(float x,
                    float y,
                    float z)
Create a point light source at point (x, y, z) with default colors and no distance attenuation.

Methods

 o setPosition
  public synchronized void setPosition(float x,
                                       float y,
                                       float z)
Set the position of the light source.
 o setPosition
  public void setPosition(Point3 position)
Set the position of the light source.
 o getPosition
  public void getPosition(Point3 position)
Get the position of the light source.
 o setIlluminationRadius
  public void setIlluminationRadius(float radius)
Set the maximum distance from this light source at which objects may still be illuminated by it.
 o getIlluminationRadius
  public float getIlluminationRadius()
 o setAttenuation
  public void setAttenuation(float quadratic,
                             float linear,
                             float constant)
Set how the light diminishes with distance from the source. At distance d from the light source, the light is diminished by a factor of: 1 / (quadratic * d ^ 2 + linear * d + constant)

All Packages  Class Hierarchy  This Package  Previous  Next  Index