C# Class SmoothedFloat

Time-step independent exponential smoothing.
When moving at a constant speed: speed * delay = Value - SmoothedFloat.value.
Mostra file Open project: leapmotion/ImageGrid Class Usage Examples

Public Properties

Property Type Description
delay float
reset bool
value float

Public Methods

Method Description
SetBlend ( float blend, float deltaTime = 1f ) : void
Update ( float input, float deltaTime = 1f ) : float

Method Details

SetBlend() public method

public SetBlend ( float blend, float deltaTime = 1f ) : void
blend float
deltaTime float
return void

Update() public method

public Update ( float input, float deltaTime = 1f ) : float
input float
deltaTime float
return float

Property Details

delay public_oe property

public float delay
return float

reset public_oe property

public bool reset
return bool

value public_oe property

public float value
return float