de.lessvoid.nifty.tools
Class LinearInterpolator

java.lang.Object
  extended by de.lessvoid.nifty.tools.LinearInterpolator

public class LinearInterpolator
extends Object

A value computed based on linear interpolation between a set of points.

Author:
void

Nested Class Summary
 class LinearInterpolator.Point
           
 
Constructor Summary
LinearInterpolator()
           
 
Method Summary
 void addPoint(float x, float y)
           
 float getMaxX()
           
 float getValue(float x)
           
 void prepare()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearInterpolator

public LinearInterpolator()
Method Detail

addPoint

public void addPoint(float x,
                     float y)

prepare

public void prepare()

getMaxX

public float getMaxX()

getValue

public float getValue(float x)


Copyright © 2011. All Rights Reserved.