 | LongSmoothener.GetVelocity Method |
Returns the velocity required to process the specified amount in the specified duration.
Namespace:
Slash.Unity.DataBind.Foundation.Providers.Smootheners
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxprotected override long GetVelocity(
long amount,
float duration
)
Protected Overrides Function GetVelocity (
amount As Long,
duration As Single
) As Long
protected:
virtual long long GetVelocity(
long long amount,
float duration
) override
abstract GetVelocity :
amount : int64 *
duration : float32 -> int64
override GetVelocity :
amount : int64 *
duration : float32 -> int64
Parameters
- amount
- Type: System.Int64
Amount to process. - duration
- Type: System.Single
Duration available to process (in s).
Return Value
Type:
Int64Velocity required to process the amount with (in 1/s).
See Also