C# Class SmoothedQuaternion

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

Public Properties

Property Type Description
delay float
reset bool
value Quaternion

Public Methods

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

Method Details

SetBlend() public method

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

Update() public method

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

Property Details

delay public property

public float delay
return float

reset public property

public bool reset
return bool

value public property

public Quaternion value
return Quaternion