org.apache.batik.ext.awt.image
public class SpotLight extends AbstractLight
| Constructor Summary | |
|---|---|
| SpotLight(double lightX, double lightY, double lightZ, double pointAtX, double pointAtY, double pointAtZ, double specularExponent, double limitingConeAngle, Color lightColor) | |
| Method Summary | |
|---|---|
| void | getLight(double x, double y, double z, double[] L)
Computes the light vector in (x, y, z)
|
| void | getLight4(double x, double y, double z, double[] L)
computes light vector in (x, y, z).
|
| double | getLightBase(double x, double y, double z, double[] L)
Computes the light vector in (x, y, z)
|
| double[][] | getLightRow4(double x, double y, double dx, int width, double[][] z, double[][] lightRow) |
| double | getLightX() |
| double | getLightY() |
| double | getLightZ() |
| double | getLimitingConeAngle() |
| double | getPointAtX() |
| double | getPointAtY() |
| double | getPointAtZ() |
| double | getSpecularExponent() |
| 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, x,y,z are scaled by light intensity.
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 4 where result is stored. 0,1,2 are x,y,z respectively of light vector (normalized). 3 is the intensity of the light at this point.
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 intensity factor for this light vector.
Returns: the light's x position
Returns: the light's y position
Returns: the light's z position
Returns: light's limiting cone angle
Returns: x-axis coordinate where the light points to
Returns: y-axis coordinate where the light points to
Returns: z-axis coordinate where the light points to
Returns: light's specular exponent (focus)
Returns: true if the light is constant over the whole surface