MathUtilEx.

Interpolate(Vector3, Vector3, float, EasingFunction, Vector3) Method

Summary

Performs an interpolation between two vectors using an easing function.
Namespace
StrideToolkit.Mathematics
Containing Type
MathUtilEx

Syntax

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Interpolate(ref Vector3 start, ref Vector3 end, float amount, EasingFunction easingFunction, out Vector3 result)

Remarks

Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.

Attributes

Type Description
MethodImplAttribute

Parameters

Name Type Description
start Vector3 Start vector.
end Vector3 End vector.
amount float Value between 0 and 1 indicating the weight of end.
easingFunction EasingFunction The function used to ease the interpolation.
result Vector3 When the method completes, contains the interpolation of the two vectors.

Return Value

Type Description
void