Class Attenuation

java.lang.Object
org.jzy3d.plot3d.rendering.lights.Attenuation

public class Attenuation extends Object
A simple setting class to define the attenuation of a light w.r.t. to the distance of the vertex to the light source, as defined in the Light javadoc.
Author:
Martin Pernollet
  • Field Details

    • constant

      protected float constant
    • linear

      protected float linear
    • quadratic

      protected float quadratic
  • Constructor Details

    • Attenuation

      public Attenuation()
    • Attenuation

      public Attenuation(float constant, float linear, float quadratic)
  • Method Details

    • getLinear

      public float getLinear()
    • setLinear

      public void setLinear(float linear)
    • getConstant

      public float getConstant()
    • setConstant

      public void setConstant(float constant)
    • getQuadratic

      public float getQuadratic()
    • setQuadratic

      public void setQuadratic(float quadratic)