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

An interpolator where the change starts backward before moving forward. More...

#include <SInterpolatorImpl.h>

Public Member Functions

 SAnticipateInterpolator ()
 Default constructor for SAnticipateInterpolator.
 
 SAnticipateInterpolator (float tension)
 Constructor for SAnticipateInterpolator.
 
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 SAnticipateInterpolator.
 

Detailed Description

An interpolator where the change starts backward before moving forward.

Definition at line 115 of file SInterpolatorImpl.h.

Constructor & Destructor Documentation

◆ SAnticipateInterpolator() [1/2]

SAnticipateInterpolator::SAnticipateInterpolator ( )

Default constructor for SAnticipateInterpolator.

Definition at line 77 of file SInterpolatorImpl.cpp.

◆ SAnticipateInterpolator() [2/2]

SAnticipateInterpolator::SAnticipateInterpolator ( float tension)

Constructor for SAnticipateInterpolator.

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

Definition at line 72 of file SInterpolatorImpl.cpp.

Member Function Documentation

◆ getInterpolation()

float SAnticipateInterpolator::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 66 of file SInterpolatorImpl.cpp.

◆ SetAttribute()

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

Attributes for SAnticipateInterpolator.

< Amount of anticipation.

Definition at line 143 of file SInterpolatorImpl.h.


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