C4 Engine
C4 Engine API Documentation

Interpolator::GetRange

Defined in:  C4Time.h
Returns the range of an interpolator.
Prototype

const Range<float>& GetRange(voidconst;

Description
The GetRange function returns the current range of an interpolator. The interpolated value is changed at the current rate until it reaches the end of the range or the beginning of the range, depending on whether kInterpolatorForward or kInterpolatorBackward is part of the current mode.

It is possible for an interpolator's current value to be outside the interpolator's range. This can happen if the current value is set to a value less than the range's minimum value and the current mode includes kInterpolatorForward, or it can happen if the current value is set to a value greater than the range's maximum value and the current mode includes kInterpolatorBackward.
See Also

Interpolator::SetRange

Interpolator::SetMinValue

Interpolator::SetMaxValue

Range