#include <AlAreaLight.h>
class AlAreaLight: public AlDirectionLight
AlAreaLight();
virtual ~AlAreaLight();
statusCode create();
virtual AlObject* copyWrapper() const;
AlObjectType type() const;
AlAreaLight* asAreaLightPtr();
statusCode longAxis( double&, double&, double& ) const;
statusCode shortAxis( double&, double&, double& ) const;
statusCode setLongAxis( double, double, double );
statusCode setShortAxis( double, double, double );
statusCode cornerPoints( double&, double&, double&, double&, double&,
double&) const;
To create an area light, the user must instantiate and call the create method on an AlAreaLight object. (For more information on lights in general, see the Class Description of the AlDirectionLight object.)
To determine the orientation of the rectangular area of this light, use the worldPosition() of this light and the method cornerPoints(). The cornerPoints() method returns points A and B in world space, as in the following diagram: (WP is the World Position)

Summary
AlAreaLight::AlAreaLight()
Description
Constructs an AlAreaLight wrapper object. AlAreaLight::~AlAreaLight()
Description
Deletes an AlAreaLight wrapper object. statusCode AlAreaLight::create()
Description
This method creates all the dag nodes for this light and adds them to the universe. The dag nodes are for 'position', 'look at' and 'up', and another dag node that groups these three together. Return codes
sSuccess - if everything was successful AlObjectType AlAreaLight::type() const
Description
Returns the class identifier, kAreaLightType. AlAreaLight* AlAreaLight::asAreaLightPtr()
Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class. statusCode AlAreaLight::longAxis( double &x, double &y, double &z) const
Description
Returns the linear light's long axis in x,y & z. Arguments
> double &x - is the length of the axis in the x direction Return codes
sSuccess - successfully determined long axis of the light statusCode AlAreaLight::shortAxis( double &x, double &y, double &z) const
Description
Returns the linear light's short axis in x,y & z. Arguments
> double &x - is the length of the axis in the x direction Return codes
sSuccess - successfully determined short axis of the light statusCode AlAreaLight::setLongAxis( double x, double y, double z )
Description
Sets the long axis of the light to be x,y, & z. The given vector must be non-zero. Arguments
< double x - is the new length of the axis in the x direction Return codes
sSuccess - setting long axis succeeded statusCode AlAreaLight::setShortAxis( double x, double y, double z )
Description
Sets the short axis of the light to be x,y, & z. The given vector must be non-zero. Arguments
< double x - is the new length of the axis in the x direction Return codes
sSuccess - setting short axis succeeded statusCode AlAreaLight::cornerPoints( double &x1, double &y1, double &z1,double &x2, double &y2, double &z2) const
Description
Returns the corner points of the rectangular area of this area light. The corner points are in world space. The corner points are A and B in the following diagram (WP is World Position of the light) 
Arguments
> double &x1 - the world space short axis corner point in x direction Return codes
sSuccess - successfully determined the light's corner points.