Kanzi 3.9.10
kanzi::ExponentialEasingFunction Struct Reference

Changes the value with an exponential function with power that you can configure. More...

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

Public Member Functions

 ExponentialEasingFunction ()
 Creates an ExponentialEasingFunction with a default exponent of 2.0.
 
 ExponentialEasingFunction (float exponent)
 Creates an ExponentialEasingFunction with a configurable exponent.
 
float operator() (float time) const
 Computes value of the easing function for the given time.
 

Public Attributes

float exponent
 

Detailed Description

Changes the value with an exponential function with power that you can configure.

Exponential easing function: ease in, ease out, and ease in-out

Constructor & Destructor Documentation

◆ ExponentialEasingFunction() [1/2]

kanzi::ExponentialEasingFunction::ExponentialEasingFunction ( float exponent)
inlineexplicit

Creates an ExponentialEasingFunction with a configurable exponent.

Parameters
exponentThe exponent used for the exponential function.

◆ ExponentialEasingFunction() [2/2]

kanzi::ExponentialEasingFunction::ExponentialEasingFunction ( )
inline

Creates an ExponentialEasingFunction with a default exponent of 2.0.

Member Function Documentation

◆ operator()()

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

Computes value of the easing function for the given time.

Parameters
timeNormalized time.
Returns
Result of the easing function.

Member Data Documentation

◆ exponent

float kanzi::ExponentialEasingFunction::exponent

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