You.i Engine
CYIInterpolateInvert Class Reference

Detailed Description

An interpolator that 'reverses' the provided range.

This interpolator reverses the provided range such that an input of 0.0 returns 1.0, and input of 0.1 returns 0.9, and so forth.

#include <animation/YiInterpolateInvert.h>

Inheritance diagram for CYIInterpolateInvert:

Public Member Functions

virtual ~CYIInterpolateInvert ()
virtual float Interpolate (float timePercentage) override
- Public Member Functions inherited from CYITimeInterpolator
virtual ~CYITimeInterpolator ()
virtual void Reset ()

Constructor & Destructor Documentation

◆ ~CYIInterpolateInvert()

virtual CYIInterpolateInvert::~CYIInterpolateInvert ( )

Member Function Documentation

◆ Interpolate()

virtual float CYIInterpolateInvert::Interpolate ( float  timePercentage)

Remaps the value timePercentage onto a new range and returns the remapped value. The range used to remap onto is dependent on the specific type of interpolator used.

Implements CYITimeInterpolator.

The documentation for this class was generated from the following file: