|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttoxi.math.CosineInterpolation
public class CosineInterpolation

Implementation of the cosine interpolation function: i = b+(a-b)*(0.5+0.5*cos(f*PI))
| Constructor Summary | |
|---|---|
CosineInterpolation()
|
|
| 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 CosineInterpolation()
| Method Detail |
|---|
public final float interpolate(float a,
float b,
float f)
InterpolateStrategy
interpolate in interface InterpolateStrategya - 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 | |||||||||