public class InterpolatedInteger extends java.lang.Object implements IInterpolated<InterpolatedInteger>
Constructor and Description |
---|
InterpolatedInteger(int iValue)
Creates an
InterpolatedInteger object with the specified integer value. |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Returns the integer value that is represented by this object as a double value.
|
InterpolatedInteger |
interpolateLinearly(InterpolatedInteger pOtherObject,
double dLambda)
Returns an
InterpolatedInteger object representing the integer value which is an interpolation between the integer value of this object,
and the integer value that has been passed on as parameter. |
int |
intValue()
Returns the integer value that is represented by this object.
|
java.lang.String |
toString()
Returns the integer value that is represented by this object as a string.
|
public InterpolatedInteger(int iValue)
InterpolatedInteger
object with the specified integer value.iValue
- The integer value that should be represented by this InterpolatedInteger
object.public int intValue()
public double doubleValue()
public java.lang.String toString()
toString
in class java.lang.Object
public InterpolatedInteger interpolateLinearly(InterpolatedInteger pOtherObject, double dLambda)
InterpolatedInteger
object representing the integer value which is an interpolation between the integer value of this object,
and the integer value that has been passed on as parameter.interpolateLinearly
in interface IInterpolated<InterpolatedInteger>
pOtherObject
- The second integer value that is needed to calculate the interpolated value.dLambda
- Steers the weights of the integer values. A value of 1 means that the value of this object gets fully considered.
A value of 0 means that the parameter value gets fully considered. (TO DO: Should not it be the other way round?)