edu.umd.cfar.lamp.viper.gui.data.polygon
Class PolygonInterpolator

java.lang.Object
  extended byedu.umd.cfar.lamp.viper.gui.data.HelpInterpolate
      extended byedu.umd.cfar.lamp.viper.gui.data.polygon.PolygonInterpolator
All Implemented Interfaces:
Interpolator

public class PolygonInterpolator
extends HelpInterpolate

Interpolates two polygons. There are a lot of parameters possible for how this should be done, and I don't pretend to have the perfect 2d polygon morph here, so this should work better with simpler polygons and between similar polygons. XXX: for now, this just shifts the polygons


Constructor Summary
PolygonInterpolator()
           
 
Method Summary
 ArbitraryIndexList helpInterpolate(java.lang.Object alpha, java.lang.Object beta, long between)
          Return the between values between a and b.
 
Methods inherited from class edu.umd.cfar.lamp.viper.gui.data.HelpInterpolate
interpolate, oneNth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonInterpolator

public PolygonInterpolator()
Method Detail

helpInterpolate

public ArbitraryIndexList helpInterpolate(java.lang.Object alpha,
                                          java.lang.Object beta,
                                          long between)
                                   throws InterpolationException
Description copied from class: HelpInterpolate
Return the between values between a and b.

Specified by:
helpInterpolate in class HelpInterpolate
Parameters:
alpha -
beta -
between -
Returns:
Throws:
InterpolationException