Click or drag to resize

Mathf.Lerp 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: System.Single
The start value for interpolation.
to
Type: System.Single
The destination value for interpolation.
weight
Type: System.Single
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