public class IlvAffineAxisTransformer extends IlvAxisTransformer
| Constructor and Description |
|---|
IlvAffineAxisTransformer(double scaling,
double constant)
Creates a transformer with the specified scaling and constant.
|
| Modifier and Type | Method and Description |
|---|---|
double |
apply(double value)
Applies the transformation to the specified value.
|
double |
getConstant()
Returns the constant.
|
double |
getScaling()
Returns the scaling.
|
double |
inverse(double value)
Applies the inverse transformation to the specified value.
|
void |
setConstant(double constant)
Sets the constant.
|
void |
setDefinition(double scaling,
double constant)
Sets the scaling and constant coefficients.
|
void |
setScaling(double scaling)
Sets the scaling.
|
apply, apply, getAxis, inverse, inverse, transformerChanged, validateIntervalpublic IlvAffineAxisTransformer(double scaling,
double constant)
public final double getScaling()
setScaling(double)public void setScaling(double scaling)
0 so that the inverse
transformation can be computed.getScaling()public final double getConstant()
setConstant(double)public void setConstant(double constant)
getConstant()public void setDefinition(double scaling,
double constant)
setScaling(double),
setConstant(double)public double apply(double value)
throws IlvAxisTransformerException
apply in class IlvAxisTransformervalue - The considered value.IlvAxisTransformerException - If the transformation of the
specified value could not be properly computed.inverse(double)public double inverse(double value)
throws IlvAxisTransformerException
inverse in class IlvAxisTransformervalue - The considered value.IlvAxisTransformerException - If the inverse transformation of the
specified value could not be properly computed.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.