|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.math.LinearInterpolation
public class LinearInterpolation
Implementation of the linear interpolation function i = a + ( b - a ) * f
Constructor Summary | |
---|---|
LinearInterpolation()
|
Method Summary | |
---|---|
float |
interpolate(float a,
float b,
float f)
Implements an interpolation equation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearInterpolation()
Method Detail |
---|
public final float interpolate(float a, float b, float f)
InterpolateStrategy
interpolate
in interface InterpolateStrategy
a
- current valueb
- target valuef
- normalized interpolation factor (0.0 .. 1.0)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |