Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.arranger.jarl.util
Class InterpolateUtil  view InterpolateUtil download InterpolateUtil.java

java.lang.Object
  extended bycom.arranger.jarl.util.InterpolateUtil

public class InterpolateUtil
extends java.lang.Object

InterpolateUtil created on Feb 21, 2003


Constructor Summary
InterpolateUtil()
           
 
Method Summary
static InterpolationPair[] createSegmentPairs(java.awt.geom.Point2D[] points)
           
static InterpolationPair getSegment(double x, InterpolationPair[] segmentPairs)
           
static double interpolate(double x1, double x2, double y1, double y2, double currentX)
           
static double interpolate(com.arranger.jarl.base.ITimedJarlObject timedObj, com.arranger.jarl.base.Time currentTime)
          Get the pct into rendering this timedObj
static double interpolate(com.arranger.jarl.base.Time startTime, com.arranger.jarl.base.Time endTime, double startValue, double endValue, com.arranger.jarl.base.Time currentTime)
          Based on the current time interpolate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterpolateUtil

public InterpolateUtil()
Method Detail

createSegmentPairs

public static InterpolationPair[] createSegmentPairs(java.awt.geom.Point2D[] points)

getSegment

public static InterpolationPair getSegment(double x,
                                           InterpolationPair[] segmentPairs)

interpolate

public static double interpolate(com.arranger.jarl.base.ITimedJarlObject timedObj,
                                 com.arranger.jarl.base.Time currentTime)
Get the pct into rendering this timedObj


interpolate

public static double interpolate(com.arranger.jarl.base.Time startTime,
                                 com.arranger.jarl.base.Time endTime,
                                 double startValue,
                                 double endValue,
                                 com.arranger.jarl.base.Time currentTime)
Based on the current time interpolate


interpolate

public static double interpolate(double x1,
                                 double x2,
                                 double y1,
                                 double y2,
                                 double currentX)