LibreOffice Module sd (master) 1
|
Turn a parametric function into one whose y-Values depend on its x-Values. More...
#include <SlsAnimationFunction.hxx>
Public Types | |
typedef ::std::function< basegfx::B2DPoint(double)> | ParametricFunction |
Public Member Functions | |
AnimationParametricFunction (const ParametricFunction &rFunction) | |
double | operator() (const double nX) |
Private Attributes | |
::std::vector< double > | maY |
y-Values of the parametric function given to the constructor evaluated (and interpolated) for evenly spaced x-Values. More... | |
Turn a parametric function into one whose y-Values depend on its x-Values.
Note a lot of interpolation takes place. The resulting accuracy should be good enough for the purpose of acceleration function for animations.
Definition at line 60 of file SlsAnimationFunction.hxx.
typedef ::std::function<basegfx::B2DPoint (double)> sd::slidesorter::controller::AnimationParametricFunction::ParametricFunction |
Definition at line 63 of file SlsAnimationFunction.hxx.
sd::slidesorter::controller::AnimationParametricFunction::AnimationParametricFunction | ( | const ParametricFunction & | rFunction | ) |
Definition at line 73 of file SlsAnimationFunction.cxx.
double sd::slidesorter::controller::AnimationParametricFunction::operator() | ( | const double | nX | ) |
Definition at line 111 of file SlsAnimationFunction.cxx.
References o3tl::make_unsigned(), and maY.
|
private |
y-Values of the parametric function given to the constructor evaluated (and interpolated) for evenly spaced x-Values.
Definition at line 72 of file SlsAnimationFunction.hxx.
Referenced by AnimationParametricFunction(), and operator()().