Package com.orsonpdf
Class ExponentialInterpolationFunction
java.lang.Object
com.orsonpdf.PDFObject
com.orsonpdf.Function
com.orsonpdf.ExponentialInterpolationFunction
A PDF "Type 2" function.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) float[]
(package private) float[]
(package private) double
Fields inherited from class com.orsonpdf.Function
dictionary
-
Constructor Summary
ConstructorsConstructorDescriptionExponentialInterpolationFunction
(int number, float[] c0, float[] c1) Creates a new function. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]
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
-
Field Details
-
n
double n -
c0
float[] c0 -
c1
float[] c1
-
-
Constructor Details
-
ExponentialInterpolationFunction
public ExponentialInterpolationFunction(int number, float[] c0, float[] c1) Creates a new function.- Parameters:
number
- the PDF object number.c0
- the function result at 0.0.c1
- the function result at 1.0.
-
-
Method Details
-
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).
-