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

An interpolator where the change overshoots the target and then comes back. More...

#include <SInterpolatorImpl.h>

Public Member Functions

 SOvershootInterpolator (float tension=2.0f)
 Constructor for SOvershootInterpolator.
 
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 SOvershootInterpolator.
 

Detailed Description

An interpolator where the change overshoots the target and then comes back.

Definition at line 268 of file SInterpolatorImpl.h.

Constructor & Destructor Documentation

◆ SOvershootInterpolator()

SOvershootInterpolator::SOvershootInterpolator ( float tension = 2.0f)

Constructor for SOvershootInterpolator.

Parameters
tensionAmount of overshoot. When tension equals 0.0f, there is no overshoot and the interpolator becomes a simple deceleration interpolator.

Definition at line 157 of file SInterpolatorImpl.cpp.

Member Function Documentation

◆ getInterpolation()

float SOvershootInterpolator::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 149 of file SInterpolatorImpl.cpp.

◆ SetAttribute()

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

Attributes for SOvershootInterpolator.

< Amount of overshoot.

Definition at line 291 of file SInterpolatorImpl.h.


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