Vector4Lerp(Vector4, Vector4, Double, Vector4) Method |
Performs a linear interpolation between two vectors based on the given weighting.
Namespace: NeoAxisAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static void Lerp(
ref Vector4 v1,
ref Vector4 v2,
double amount,
out Vector4 result
)
Parameters
- v1 Vector4
- The first vector.
- v2 Vector4
- The second vector.
- amount Double
- A value between 0 and 1 that indicates the weight of v2.
- result Vector4
- When the method completes, contains the linear interpolation of the two vectors.
See Also