Click or drag to resize

MathfLerp Method

Linearly interpolates between two values by a normalized value. This is the opposite InverseLerp(Single, Single, Single).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static float Lerp(
	float from,
	float to,
	float weight
)

Parameters

from
Type: SystemSingle
The start value for interpolation.
to
Type: SystemSingle
The destination value for interpolation.
weight
Type: SystemSingle
A value on the range of 0.0 to 1.0, representing the amount of interpolation.

Return Value

Type: Single
The resulting value of the interpolation.
See Also