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

An interpolator where the rate of change starts slow and accelerates. More...

#include <SInterpolatorImpl.h>

Public Member Functions

 SAccelerateInterpolator (float factor=1.0f)
 Constructor for SAccelerateInterpolator.
 
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 SAccelerateInterpolator.
 

Detailed Description

An interpolator where the rate of change starts slow and accelerates.

Definition at line 32 of file SInterpolatorImpl.h.

Constructor & Destructor Documentation

◆ SAccelerateInterpolator()

SAccelerateInterpolator::SAccelerateInterpolator ( float factor = 1.0f)

Constructor for SAccelerateInterpolator.

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

Definition at line 32 of file SInterpolatorImpl.cpp.

Member Function Documentation

◆ getInterpolation()

float SAccelerateInterpolator::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 20 of file SInterpolatorImpl.cpp.

◆ SetAttribute()

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

Attributes for SAccelerateInterpolator.

< Degree to which the animation should be eased.

Definition at line 57 of file SInterpolatorImpl.h.


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