public class InterpolatedDouble extends java.lang.Object implements IInterpolated<InterpolatedDouble>
Constructor and Description |
---|
InterpolatedDouble(double dValue)
Creates an
InterpolatedDouble object with the specified double value. |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Returns the double value that is represented by this object.
|
InterpolatedDouble |
interpolateLinearly(InterpolatedDouble pOtherObject,
double dLambda)
Returns an
InterpolatedDouble object representing the double value which is an interpolation between the double value of this object,
and the double value that has been passed on as parameter. |
int |
intValue()
Returns the integer value that is nearest to the double value represented by this object.
|
java.lang.String |
toString()
Returns a string representation of the double value that is represented by this object.
|
public InterpolatedDouble(double dValue)
InterpolatedDouble
object with the specified double value.dValue
- The double value that should be represented by this InterpolatedDouble
object.public int intValue()
public double doubleValue()
public java.lang.String toString()
toString
in class java.lang.Object
public InterpolatedDouble interpolateLinearly(InterpolatedDouble pOtherObject, double dLambda)
InterpolatedDouble
object representing the double value which is an interpolation between the double value of this object,
and the double value that has been passed on as parameter.interpolateLinearly
in interface IInterpolated<InterpolatedDouble>
pOtherObject
- The second double value that is needed to calculate the interpolated value.dLambda
- Steers the weights of the double 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?)