Windows apps
Collapse the table of content
Expand the table of content

Vector2::Lerp Method

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

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
static Vector2 Lerp(
	Vector2 value1, 
	Vector2 value2, 
	float amount
)

Parameters

value1
Type: System.Numerics::Vector2

The first vector.

value2
Type: System.Numerics::Vector2

The second vector.

amount
Type: System::Single

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

Return Value

Type: System.Numerics::Vector2
The interpolated vector.
Show:
© 2017 Microsoft