ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX Namespace / DXUtil Class / Lerp Method / Lerp(Double,Double,Double) Method
Value to interpolate from.
Value to interpolate to.
Interpolation amount.

In This Topic
    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 from As Double, _
       ByVal to As Double, _
       ByVal amount As Double _
    ) As Double
    public static double Lerp( 
       double from,
       double to,
       double amount
    )

    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.
    Remarks
    See http://www.encyclopediaofmath.org/index.php/Linear_interpolation and http://fgiesen.wordpress.com/2012/08/15/linear-interpolation-past-present-and-future/
    See Also