Lerp(Double,Double,Double) 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.Double, _
ByVal As System.Double, _
ByVal As System.Double _
) As System.Double
public static System.double Lerp(
System.double ,
System.double ,
System.double
)
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