raja.light
Interface LightSource

All Known Implementing Classes:
DirectionalLightSource, PointLightSource

public interface LightSource

The interface for objects which represent light sources.

See Also:
World, LightRay

Method Summary
 LightRay getLightRay(Point3D p)
          Returns the LightRay from the specified Point3D to the LightSource.
 RGB getMax()
           
 

Method Detail

getLightRay

public LightRay getLightRay(Point3D p)
Returns the LightRay from the specified Point3D to the LightSource. If the LightSource does not directly illuminate the specified Point3D, then this method returns null.
Parameters:
p - a specified Point3D.
Returns:
the LightRay from the specified Point3D to the LightSource if the LightSource directly illuminates this point; null otherwise.

getMax

public RGB getMax()