Click or drag to resize

MathfLerpAngle Method

Linearly interpolates between two angles (in radians) by a normalized value. Similar to Lerp(Single, Single, Single), but interpolates correctly when the angles wrap around Tau.

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

Parameters

from
Type: SystemSingle
The start angle for interpolation.
to
Type: SystemSingle
The destination angle 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 angle of the interpolation.
See Also