Click or drag to resize

Vector4Lerp Method (Vector4, Vector4, Double)

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 Vector4 Lerp(
	Vector4 v1,
	Vector4 v2,
	double amount
)

Parameters

v1
Type: NeoAxisVector4
The first vector.
v2
Type: NeoAxisVector4
The second vector.
amount
Type: SystemDouble
A value between 0 and 1 that indicates the weight of v2.

Return Value

Type: Vector4
The interpolated vector.
See Also