Kanzi  3.9.5
Kanzi Engine 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

◆ PowerEasingFunction() [1/2]

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

Creates a PowerEasingFunction with a configurable power.

Parameters
powerThe order of power function to use.

◆ PowerEasingFunction() [2/2]

kanzi::PowerEasingFunction::PowerEasingFunction ( )
inline

Creates a PowerEasingFunction with a power of 6.0.

Member Function Documentation

◆ operator()()

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

◆ power

float kanzi::PowerEasingFunction::power

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