MathUtilEx.

Interpolate(float, float, float, EasingFunction) Method

Summary

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

Syntax

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Interpolate(float start, float end, float amount, EasingFunction easingFunction)

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 float Start value.
end float End value.
amount float Value between 0 and 1 indicating the weight of end.
easingFunction EasingFunction The function used to ease the interpolation.

Return Value

Type Description
float