Class MicrosphereInterpolatingFunction.MicrosphereSurfaceElement

java.lang.Object
org.apache.commons.math3.analysis.interpolation.MicrosphereInterpolatingFunction.MicrosphereSurfaceElement
Enclosing class:
MicrosphereInterpolatingFunction

private static class MicrosphereInterpolatingFunction.MicrosphereSurfaceElement extends Object
Class for storing the accounting data needed to perform the microsphere projection.
  • Field Details

    • normal

      private final RealVector normal
      Normal vector characterizing a surface element.
    • brightestIllumination

      private double brightestIllumination
      Illumination received from the brightest sample.
    • brightestSample

      private Map.Entry<RealVector,Double> brightestSample
      Brightest sample.
  • Constructor Details

    • MicrosphereSurfaceElement

      MicrosphereSurfaceElement(double[] n)
      Parameters:
      n - Normal vector characterizing a surface element of the microsphere.
  • Method Details

    • normal

      RealVector normal()
      Return the normal vector.
      Returns:
      the normal vector
    • reset

      void reset()
      Reset "illumination" and "sampleIndex".
    • store

      void store(double illuminationFromSample, Map.Entry<RealVector,Double> sample)
      Store the illumination and index of the brightest sample.
      Parameters:
      illuminationFromSample - illumination received from sample
      sample - current sample illuminating the element
    • illumination

      double illumination()
      Get the illumination of the element.
      Returns:
      the illumination.
    • sample

      Get the sample illuminating the element the most.
      Returns:
      the sample.