Kanzi  3.9.6
Kanzi Engine API
kanzi::BackEasingFunction Struct Reference

Changes the value back slightly before moving it toward the target. More...

#include <kanzi/core.ui/animation/easing_curve.hpp>

Public Member Functions

 BackEasingFunction (float amplitude)
 Creates a BackEasingFunction with a given amplitude. More...
 
 BackEasingFunction ()
 Creates a BackEasingFunction with an amplitude of 1.0. More...
 
float operator() (float time) const
 Computes the value of an easing function for the given time. More...
 

Public Attributes

float amplitude
 

Detailed Description

Changes the value back slightly before moving it toward the target.

BackEasingFunction.png
Back easing function: ease in, ease out, and ease in-out

Constructor & Destructor Documentation

◆ BackEasingFunction() [1/2]

kanzi::BackEasingFunction::BackEasingFunction ( float  amplitude)
inlineexplicit

Creates a BackEasingFunction with a given amplitude.

Parameters
amplitudeControls the amplitude of the back slide.

◆ BackEasingFunction() [2/2]

kanzi::BackEasingFunction::BackEasingFunction ( )
inline

Creates a BackEasingFunction with an amplitude of 1.0.

Member Function Documentation

◆ operator()()

float kanzi::BackEasingFunction::operator() ( float  time) const
inline

Computes the value of an easing function for the given time.

Parameters
timeNormalized time.
Returns
Result of the easing function.

Member Data Documentation

◆ amplitude

float kanzi::BackEasingFunction::amplitude

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