private static class MicrosphereInterpolatingFunction.MicrosphereSurfaceElement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private double |
brightestIllumination
Illumination received from the brightest sample.
|
private java.util.Map.Entry<RealVector,java.lang.Double> |
brightestSample
Brightest sample.
|
private RealVector |
normal
Normal vector characterizing a surface element.
|
Constructor and Description |
---|
MicrosphereInterpolatingFunction.MicrosphereSurfaceElement(double[] n) |
Modifier and Type | Method and Description |
---|---|
(package private) double |
illumination()
Get the illumination of the element.
|
(package private) RealVector |
normal()
Return the normal vector.
|
(package private) void |
reset()
Reset "illumination" and "sampleIndex".
|
(package private) java.util.Map.Entry<RealVector,java.lang.Double> |
sample()
Get the sample illuminating the element the most.
|
(package private) void |
store(double illuminationFromSample,
java.util.Map.Entry<RealVector,java.lang.Double> sample)
Store the illumination and index of the brightest sample.
|
private final RealVector normal
private double brightestIllumination
private java.util.Map.Entry<RealVector,java.lang.Double> brightestSample
MicrosphereInterpolatingFunction.MicrosphereSurfaceElement(double[] n)
n
- Normal vector characterizing a surface element
of the microsphere.RealVector normal()
void reset()
void store(double illuminationFromSample, java.util.Map.Entry<RealVector,java.lang.Double> sample)
illuminationFromSample
- illumination received from samplesample
- current sample illuminating the elementdouble illumination()
java.util.Map.Entry<RealVector,java.lang.Double> sample()
Copyright (c) 2003-2014 Apache Software Foundation