com.google.caliper.util
Class LinearTranslation

java.lang.Object
  extended by com.google.caliper.util.LinearTranslation

@GwtCompatible
public class LinearTranslation
extends Object


Constructor Summary
LinearTranslation(double in1, double out1, double in2, double out2)
          Constructs a linear translation for which translate(in1) == out1 and translate(in2) == out2.
 
Method Summary
 double translate(double in)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearTranslation

public LinearTranslation(double in1,
                         double out1,
                         double in2,
                         double out2)
Constructs a linear translation for which translate(in1) == out1 and translate(in2) == out2.

Throws:
IllegalArgumentException - if in1 == in2
Method Detail

translate

public double translate(double in)


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.