Lerp(Single,Single,Single) Method
In This Topic
Interpolates between two values using a linear function by a given amount.
Syntax
'Declaration
Public Overloads Shared Function Lerp( _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single _
) As System.Single
public static System.float Lerp(
System.float ,
System.float ,
System.float
)
Parameters
- from
- Value to interpolate from.
- to
- Value to interpolate to.
- amount
- Interpolation amount.
Return Value
The result of linear interpolation of values based on the amount.
See Also