ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX Namespace / Vector2 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 (Vector2)
    In This Topic
    Performs a linear interpolation between two vectors based on the given weighting.
    Syntax
    'Declaration
     
    Public Shared Function Lerp( _
       ByVal value1 As Vector2, _
       ByVal value2 As Vector2, _
       ByVal amount As Single _
    ) As Vector2
    public static Vector2 Lerp( 
       Vector2 value1,
       Vector2 value2,
       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