Click or drag to resize

Vector2Lerp Method (Vector2, Vector2, Double)

Linear interpolation between two Vector2s

This is most commonly used to find a point some fraction of the way along a line between two endpoints When t = 0 returns a. When t = 1 returns b. When t = 0.5 returns the point midway between a and b.

Namespace:  Microsoft.DirectX
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 11.0.0.7658
Syntax
C#
public static Vector2 Lerp(
	Vector2 a,
	Vector2 b,
	double t
)

Parameters

a
Type: Microsoft.DirectXVector2
Start Vector2
b
Type: Microsoft.DirectXVector2
End Vector2
t
Type: SystemDouble
Interpolant

Return Value

Type: Vector2
Interpolated Vector2
See Also