Package com.orsonpdf
Class ExponentialInterpolationFunction
- java.lang.Object
-
- com.orsonpdf.PDFObject
-
- com.orsonpdf.Function
-
- com.orsonpdf.ExponentialInterpolationFunction
-
public final class ExponentialInterpolationFunction extends Function
A PDF "Type 2" function.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) float[]
c0
(package private) float[]
c1
(package private) double
n
-
Fields inherited from class com.orsonpdf.Function
dictionary
-
-
Constructor Summary
Constructors Constructor Description ExponentialInterpolationFunction(int number, float[] c0, float[] c1)
Creates a new function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
getC0()
Returns the function result when x is 0.0.float[]
getC1()
Returns the function result when x is 1.0.double
getN()
Returns the interpolation exponent.void
setC0(float[] c0)
Sets the function result to be used when x is 0.0.void
setC1(float[] c1)
Sets the function result to be used when x is 1.0.void
setN(double n)
Sets the interpolation exponent.-
Methods inherited from class com.orsonpdf.Function
getDomain, getFunctionType, getObjectBytes, setDomain
-
Methods inherited from class com.orsonpdf.PDFObject
getGeneration, getNumber, getReference, toPDFBytes
-
-
-
-
Method Detail
-
getN
public double getN()
Returns the interpolation exponent. The default value is1
.- Returns:
- The interpolation exponent.
-
setN
public void setN(double n)
Sets the interpolation exponent.- Parameters:
n
- the new interpolation exponent.
-
getC0
public float[] getC0()
Returns the function result when x is 0.0. The returned array is a copy.- Returns:
- The function result when x is 0.0.
-
setC0
public void setC0(float[] c0)
Sets the function result to be used when x is 0.0. The array passed to this method will be copied.- Parameters:
c0
- the function result (null
not permitted).
-
getC1
public float[] getC1()
Returns the function result when x is 1.0. The returned array is a copy.- Returns:
- The function result when x is 1.0.
-
setC1
public void setC1(float[] c1)
Sets the function result to be used when x is 1.0. The array passed to this method will be copied.- Parameters:
c1
- the function result (null
not permitted).
-
-