Click or drag to resize

Vector4FLerp Method (Vector4F, Vector4F, Single, Vector4F)

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

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static void Lerp(
	ref Vector4F v1,
	ref Vector4F v2,
	float amount,
	out Vector4F result
)

Parameters

v1
Type: NeoAxisVector4F
The first vector.
v2
Type: NeoAxisVector4F
The second vector.
amount
Type: SystemSingle
A value between 0 and 1 that indicates the weight of v2.
result
Type: NeoAxisVector4F
When the method completes, contains the linear interpolation of the two vectors.
See Also