ComponentOne Bitmap for WinForms
C1.Win.C1DX.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 System.Single, _
       ByVal to As System.Single, _
       ByVal amount As System.Single _
    ) As System.Single
    public static System.float Lerp( 
       System.float from,
       System.float to,
       System.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