![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
Predefined controller function based on linear function interpolation. More...
#include <OgrePredefinedControllers.h>
Inheritance diagram for Ogre::LinearControllerFunction:Public Member Functions | |
| LinearControllerFunction (const std::vector< Real > &keys, const std::vector< Real > &values, Real frequency=1, bool deltaInput=true) | |
| Constructor, requires keys and values of the function to interpolate. | |
| Real | calculate (Real source) override |
| Overridden function. | |
Public Member Functions inherited from Ogre::ControllerFunction< Real > | |
| ControllerFunction (bool deltaInput) | |
| Constructor. | |
| virtual | ~ControllerFunction () |
Predefined controller function based on linear function interpolation.
| Ogre::LinearControllerFunction::LinearControllerFunction | ( | const std::vector< Real > & | keys, |
| const std::vector< Real > & | values, | ||
| Real | frequency = 1, | ||
| bool | deltaInput = true ) |
Constructor, requires keys and values of the function to interpolate.
| keys | the x-values of the function sampling points. Value range is [0,1]. Must include at least the keys 0 and 1. |
| values | the function values f(x) of the function. order must match keys |
Overridden function.
Implements Ogre::ControllerFunction< Real >.