public class DistantLight extends AbstractLight
| Constructor and Description |
|---|
DistantLight(double azimuth,
double elevation,
java.awt.Color color) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAzimuth() |
double |
getElevation() |
void |
getLight(double x,
double y,
double z,
double[] L)
Computes the light vector in (x, y)
|
double[][] |
getLightRow(double x,
double y,
double dx,
int width,
double[][] z,
double[][] lightRow)
Returns a row of the light map, starting at (x, y) with dx
increments, a given width, and z elevations stored in the
fourth component on the N array.
|
boolean |
isConstant() |
getColor, getLightMap, setColor, sRGBToLsRGBpublic DistantLight(double azimuth,
double elevation,
java.awt.Color color)
public double getAzimuth()
public double getElevation()
public boolean isConstant()
isConstant in interface LightisConstant in class AbstractLightpublic 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 computedL - array of length 3 where the result is storedz - z-axis coordinate where the light should be computedpublic double[][] getLightRow(double x,
double y,
double dx,
int width,
double[][] z,
double[][] lightRow)
getLightRow in interface LightgetLightRow in class AbstractLightx - x-axis coordinate where the light should be computedy - y-axis coordinate where the light should be computeddx - delta x for computing light vectors in user spacewidth - number of samples to compute on the x axisz - array containing the z elevation for all the pointslightRow - array to store the light info to, if null it will
be allocated for you and returned.Copyright © 2022 Apache Software Foundation. All Rights Reserved.