mpicbg.models
Class InterpolatedCoordinateTransform<A extends CoordinateTransform,B extends CoordinateTransform>

java.lang.Object
  extended by mpicbg.models.InterpolatedCoordinateTransform<A,B>
All Implemented Interfaces:
Serializable, CoordinateTransform

public class InterpolatedCoordinateTransform<A extends CoordinateTransform,B extends CoordinateTransform>
extends Object
implements CoordinateTransform

Linearly interpolates between two independent CoordinateTransforms.

Author:
Stephan Saalfeld
See Also:
Serialized Form

Field Summary
protected  A a
           
protected  B b
           
protected  double lambda
           
 
Constructor Summary
InterpolatedCoordinateTransform(A a, B b, double lambda)
           
 
Method Summary
 double[] apply(double[] location)
          Apply the CoordinateTransform to a location.
 void applyInPlace(double[] location)
          Apply the CoordinateTransform to a location.
 A getA()
           
 B getB()
           
 double getLambda()
           
 void setLambda(float lambda)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

protected final A extends CoordinateTransform a

b

protected final B extends CoordinateTransform b

lambda

protected double lambda
Constructor Detail

InterpolatedCoordinateTransform

public InterpolatedCoordinateTransform(A a,
                                       B b,
                                       double lambda)
Method Detail

getA

public A getA()

getB

public B getB()

getLambda

public double getLambda()

setLambda

public void setLambda(float lambda)

apply

public double[] apply(double[] location)
Description copied from interface: CoordinateTransform
Apply the CoordinateTransform to a location.

Specified by:
apply in interface CoordinateTransform
Returns:
transformed location

applyInPlace

public void applyInPlace(double[] location)
Description copied from interface: CoordinateTransform
Apply the CoordinateTransform to a location.

Specified by:
applyInPlace in interface CoordinateTransform


Copyright © 2007-2016 Fiji. All Rights Reserved.