org.jcurl.math
Interface Interpolator

Package class diagram package Interpolator
All Known Implementing Classes:
Interpolators.LinearInterpolator

public interface Interpolator

Re-implementation of Scenario Interpolator.

Version:
$Id$
Author:
M. Rohrmoser
See Also:
Interpolators

Method Summary
 float interpolate(float fraction)
          This function takes an input value between 0 and 1 and returns another value, also between 0 and 1.
 

Method Detail

interpolate

float interpolate(float fraction)
This function takes an input value between 0 and 1 and returns another value, also between 0 and 1. The purpose of the function is to define how time (represented as a (0-1) fraction of the duration of an animation) is altered to derive different value calculations during an animation.

Parameters:
fraction - a value between 0 and 1, representing the elapsed fraction of a time interval (either an entire animation cycle or an interval between two KeyFrames, depending on where this Interpolator is used)
Returns:
a value between 0 and 1. Values outside of this boundary may be clamped to the interval [0,1] and cause undefined results.


Copyright © 2005-2009 jcurl.org. All Rights Reserved.