Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::PowerEasingFunction Struct Reference

Changes the value with a configurable power function using the function f(t) = t^p, where p is equal to the power parameter. More...

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

Public Member Functions

float operator() (float time) const
 Computes the value of an easing function for the given time. More...
 
 PowerEasingFunction (float power)
 Creates a PowerEasingFunction with a configurable power. More...
 
 PowerEasingFunction ()
 Creates a PowerEasingFunction with a power of 6.0. More...
 

Public Attributes

float power
 

Detailed Description

Changes the value with a configurable power function using the function f(t) = t^p, where p is equal to the power parameter.

PowerEasingFunction.png
Power easing function: ease in, ease out, and ease in-out

Constructor & Destructor Documentation

kanzi::PowerEasingFunction::PowerEasingFunction ( float  power)
inlineexplicit

Creates a PowerEasingFunction with a configurable power.

Parameters
powerThe order of power function to use.
kanzi::PowerEasingFunction::PowerEasingFunction ( )
inline

Creates a PowerEasingFunction with a power of 6.0.

Member Function Documentation

float kanzi::PowerEasingFunction::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

float kanzi::PowerEasingFunction::power

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