public interface Light
| Modifier and Type | Method and Description |
|---|---|
double[] |
getColor(boolean linear) |
void |
getLight(double x,
double y,
double z,
double[] L)
Computes the light vector in (x, y)
|
double[][][] |
getLightMap(double x,
double y,
double dx,
double dy,
int width,
int height,
double[][][] z)
Returns a light map, starting in (x, y) with dx, dy increments, a given
width and height, and z elevations stored in the fourth component on the
N array.
|
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() |
void |
setColor(java.awt.Color color)
Sets the light color to a new value
|
boolean isConstant()
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 storeddouble[][][] getLightMap(double x,
double y,
double dx,
double dy,
int width,
int height,
double[][][] z)
x - 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 spacedy - delta y for computing light vectors in user spacewidth - number of samples to compute on the x axisheight - number of samples to compute on the y axisz - array containing the z elevation for all the pointsdouble[][] getLightRow(double x,
double y,
double dx,
int width,
double[][] z,
double[][] lightRow)
x - 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.double[] getColor(boolean linear)
linear - if true the color is returned in the Linear sRGB
colorspace otherwise the color is in the gamma
corrected sRGB color space.void setColor(java.awt.Color color)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.