Tanoda
Leap.Unity.SmoothedFloat Class Reference

Time-step independent exponential smoothing. More...

Public Member Functions

 SmoothedFloat (float blend=0f, float deltaTime=1f)
 
void SetBlend (float blend, float deltaTime=1f)
 
float Update (float input, float deltaTime=1f)
 

Public Attributes

float value = 0f
 
float delay = 0f
 
bool reset = true
 

Detailed Description

Time-step independent exponential smoothing.

When moving at a constant speed: speed * delay = Value - SmoothedFloat.value.

Definition at line 19 of file SmoothedFloat.cs.

Constructor & Destructor Documentation

◆ SmoothedFloat()

Leap.Unity.SmoothedFloat.SmoothedFloat ( float  blend = 0f,
float  deltaTime = 1f 
)

Definition at line 24 of file SmoothedFloat.cs.

Member Function Documentation

◆ SetBlend()

void Leap.Unity.SmoothedFloat.SetBlend ( float  blend,
float  deltaTime = 1f 
)

Definition at line 26 of file SmoothedFloat.cs.

◆ Update()

float Leap.Unity.SmoothedFloat.Update ( float  input,
float  deltaTime = 1f 
)

Definition at line 30 of file SmoothedFloat.cs.

Member Data Documentation

◆ delay

float Leap.Unity.SmoothedFloat.delay = 0f

Definition at line 21 of file SmoothedFloat.cs.

◆ reset

bool Leap.Unity.SmoothedFloat.reset = true

Definition at line 22 of file SmoothedFloat.cs.

◆ value

float Leap.Unity.SmoothedFloat.value = 0f

Definition at line 20 of file SmoothedFloat.cs.


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