Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / Vector4 Structure / Lerp Method
The first vector.
The second vector.
A value between 0 and 1 that indicates the weight of value2.

In This Topic
    Lerp Method (Vector4)
    In This Topic
    Performs a linear interpolation between two vectors based on the given weighting.
    Syntax
    'Declaration
     
    Public Shared Function Lerp( _
       ByVal value1 As Vector4, _
       ByVal value2 As Vector4, _
       ByVal amount As System.Single _
    ) As Vector4
    public static Vector4 Lerp( 
       Vector4 value1,
       Vector4 value2,
       System.float amount
    )

    Parameters

    value1
    The first vector.
    value2
    The second vector.
    amount
    A value between 0 and 1 that indicates the weight of value2.

    Return Value

    The interpolated vector.
    See Also