Class MicrosphereInterpolatingFunction.MicrosphereSurfaceElement
- java.lang.Object
-
- org.apache.commons.math3.analysis.interpolation.MicrosphereInterpolatingFunction.MicrosphereSurfaceElement
-
- Enclosing class:
- MicrosphereInterpolatingFunction
private static class MicrosphereInterpolatingFunction.MicrosphereSurfaceElement extends java.lang.ObjectClass for storing the accounting data needed to perform the microsphere projection.
-
-
Field Summary
Fields Modifier and Type Field Description private doublebrightestIlluminationIllumination received from the brightest sample.private java.util.Map.Entry<RealVector,java.lang.Double>brightestSampleBrightest sample.private RealVectornormalNormal vector characterizing a surface element.
-
Constructor Summary
Constructors Constructor Description MicrosphereSurfaceElement(double[] n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) doubleillumination()Get the illumination of the element.(package private) RealVectornormal()Return the normal vector.(package private) voidreset()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) voidstore(double illuminationFromSample, java.util.Map.Entry<RealVector,java.lang.Double> sample)Store the illumination and index of the brightest sample.
-
-
-
Field Detail
-
normal
private final RealVector normal
Normal vector characterizing a surface element.
-
brightestIllumination
private double brightestIllumination
Illumination received from the brightest sample.
-
brightestSample
private java.util.Map.Entry<RealVector,java.lang.Double> brightestSample
Brightest sample.
-
-
Method Detail
-
normal
RealVector normal()
Return the normal vector.- Returns:
- the normal vector
-
reset
void reset()
Reset "illumination" and "sampleIndex".
-
store
void store(double illuminationFromSample, java.util.Map.Entry<RealVector,java.lang.Double> sample)Store the illumination and index of the brightest sample.- Parameters:
illuminationFromSample- illumination received from samplesample- current sample illuminating the element
-
illumination
double illumination()
Get the illumination of the element.- Returns:
- the illumination.
-
sample
java.util.Map.Entry<RealVector,java.lang.Double> sample()
Get the sample illuminating the element the most.- Returns:
- the sample.
-
-