horizontdeformer.interpolators
Class LinearInterpolation

java.lang.Object
  extended by horizontdeformer.interpolators.LinearInterpolation
All Implemented Interfaces:
Interpolation

public class LinearInterpolation
extends java.lang.Object
implements Interpolation


Constructor Summary
LinearInterpolation(int x1, int y1, int x2, int y2)
          Creates a new instance of LinearInterpolation
 
Method Summary
 int getY(int x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearInterpolation

public LinearInterpolation(int x1,
                           int y1,
                           int x2,
                           int y2)
Creates a new instance of LinearInterpolation

Method Detail

getY

public int getY(int x)
Specified by:
getY in interface Interpolation