Click or drag to resize

Vector4Lerp(Vector4, Vector4, Double) Method

Linear interpolation between two Vector4s

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: 19.00.00
Syntax
C#
public static Vector4 Lerp(
	Vector4 a,
	Vector4 b,
	double t
)

Parameters

a  Vector4
Start Vector4
b  Vector4
End Vector4
t  Double
Interpolant

Return Value

Vector4
Interpolated Vector4
See Also