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

Defines a single step/threshold function which returns the min value for all factors < threshold and the max value for all others.
| Field Summary | |
|---|---|
float |
threshold
|
| Constructor Summary | |
|---|---|
ThresholdInterpolation(float threshold)
|
|
| 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 |
| Field Detail |
|---|
public float threshold
| Constructor Detail |
|---|
public ThresholdInterpolation(float threshold)
| Method Detail |
|---|
public 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 | |||||||||