Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.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 System.Double, _
       ByVal to As System.Double, _
       ByVal amount As System.Double _
    ) As System.Double
    public static System.double Lerp( 
       System.double from,
       System.double to,
       System.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