org.apache.batik.ext.awt.image
public class PointLight extends AbstractLight
Constructor Summary | |
---|---|
PointLight(double lightX, double lightY, double lightZ, Color lightColor) |
Method Summary | |
---|---|
void | getLight(double x, double y, double z, double[] L)
Computes the light vector in (x, y, z)
|
double | getLightX() |
double | getLightY() |
double | getLightZ() |
boolean | isConstant() |
Parameters: x x-axis coordinate where the light should be computed y y-axis coordinate where the light should be computed z z-axis coordinate where the light should be computed L array of length 3 where the result is stored
Returns: the light's x position
Returns: the light's y position
Returns: the light's z position
Returns: true if the light is constant over the whole surface