soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SDecelerateInterpolator Class Reference

An interpolator where the rate of change starts fast and decelerates. More...

#include <SInterpolatorImpl.h>

Public Member Functions

 SDecelerateInterpolator (float factor=1.0f)
 Constructor for SDecelerateInterpolator.
 
float getInterpolation (float input) SCONST OVERRIDE
 Gets the interpolated value for the given input.
 
virtual HRESULT SetAttribute (const SNS::SStringW &amp;amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;amp;strValue, BOOL bLoading=FALSE)
 Attributes for SDecelerateInterpolator.
 

Detailed Description

An interpolator where the rate of change starts fast and decelerates.

Definition at line 66 of file SInterpolatorImpl.h.

Constructor & Destructor Documentation

◆ SDecelerateInterpolator()

SDecelerateInterpolator::SDecelerateInterpolator ( float factor = 1.0f)

Constructor for SDecelerateInterpolator.

Parameters
factorDegree to which the animation should be eased. Setting factor to 1.0f produces an upside-down y=x^2 parabola. Increasing factor above 1.0f exaggerates the ease-out effect (i.e., it starts even faster and ends even slower).

Definition at line 54 of file SInterpolatorImpl.cpp.

Member Function Documentation

◆ getInterpolation()

float SDecelerateInterpolator::getInterpolation ( float input)

Gets the interpolated value for the given input.

Parameters
inputThe input value between 0 and 1.
Returns
The interpolated value.

Definition at line 40 of file SInterpolatorImpl.cpp.

◆ SetAttribute()

virtual HRESULT SDecelerateInterpolator::SetAttribute ( const SNS::SStringW &amp;amp;amp;amp; strAttribName,
const SNS::SStringW &amp;amp;amp;amp; strValue,
BOOL bLoading = FALSE )
inlinevirtual

Attributes for SDecelerateInterpolator.

< Degree to which the animation should be eased.

Definition at line 90 of file SInterpolatorImpl.h.


The documentation for this class was generated from the following files: