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

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