Click or drag to resize

Vector2Lerp(Vector2, Double) Method

Linear interpolation between this Vector2 and another Vector2

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


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

Parameters

b  Vector2
End Vector3
t  Double
Interpolant

Return Value

Vector2
Interpolated Vector3
See Also