[]
        
(Showing Draft Content)

C1.Util.DX.Vector2.Lerp

Lerp Method

Lerp(Vector2, Vector2, float)

Performs a linear interpolation between two vectors based on the given weighting.

Declaration
public static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)
Parameters
Type Name Description
Vector2 value1

The first vector.

Vector2 value2

The second vector.

float amount

A value between 0 and 1 that indicates the weight of value2.

Returns
Type Description
Vector2

The interpolated vector.