package com.srbenoit.render;

import java.awt.Color;
import com.srbenoit.geom.Point3;

/**
 * A light, which is a point source, non-directional light. Light level is based on the angle
 * between the normal vector and the vector to the light source. No specular at this point.
 */
public class Light extends Point3 {

    /** the light color */
    private final Color color;

    /**
     * Constructs a new <code>Light</code>.
     *
     * @param  xCoord      the X coordinate of the light
     * @param  yCoord      the Y coordinate of the light
     * @param  zCoord      the Z coordinate of the light
     * @param  lightColor  the color of the light
     */
    public Light(final double xCoord, final double yCoord, final double zCoord,
        final Color lightColor) {

        super(xCoord, yCoord, zCoord);

        this.color = lightColor;
    }

    /**
     * Gets the light color.
     *
     * @return  the color
     */
    public Color getColor() {

        return this.color;
    }
}
