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

An interpolator where the change repeats a specified number of cycles. More...

#include <SInterpolatorImpl.h>

Public Member Functions

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

Detailed Description

An interpolator where the change repeats a specified number of cycles.

Definition at line 236 of file SInterpolatorImpl.h.

Constructor & Destructor Documentation

◆ SCycleInterpolator()

SCycleInterpolator::SCycleInterpolator ( float cycles = 1.0f)

Constructor for SCycleInterpolator.

Parameters
cyclesNumber of cycles to repeat.

Definition at line 142 of file SInterpolatorImpl.cpp.

Member Function Documentation

◆ getInterpolation()

float SCycleInterpolator::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 137 of file SInterpolatorImpl.cpp.

◆ SetAttribute()

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

Attributes for SCycleInterpolator.

< Number of cycles to repeat.

Definition at line 259 of file SInterpolatorImpl.h.


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