public class PointLight extends AbstractLight
Constructor and Description |
---|
PointLight(double lightX,
double lightY,
double lightZ,
java.awt.Color lightColor) |
Modifier and Type | Method and Description |
---|---|
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() |
getColor, getLightMap, getLightRow, setColor, sRGBToLsRGB
public PointLight(double lightX, double lightY, double lightZ, java.awt.Color lightColor)
public double getLightX()
public double getLightY()
public double getLightZ()
public boolean isConstant()
isConstant
in interface Light
isConstant
in class AbstractLight
public final void getLight(double x, double y, double z, double[] L)
x
- x-axis coordinate where the light should be computedy
- y-axis coordinate where the light should be computedz
- z-axis coordinate where the light should be computedL
- array of length 3 where the result is storedCopyright © 2022 Apache Software Foundation. All Rights Reserved.