Click or drag to resize

Vector2Lerp Method (Vector2, Vector2, Double, Vector2)

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 Vector2 v1,
	ref Vector2 v2,
	double amount,
	out Vector2 result
)

Parameters

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