Class Attenuation
java.lang.Object
org.jzy3d.plot3d.rendering.lights.Attenuation
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
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
void
setConstant
(float constant) void
setLinear
(float linear) void
setQuadratic
(float quadratic)
-
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)
-