Click or drag to resize

Vector2HLerp Method (Vector2H, Vector2H, HalfType, Vector2H)

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

Parameters

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