LerpAngles


Linearly interpolates between two angles in the direction of minimum turn.

Syntax

C++
Python
 
def LerpAngles(
	inAngle0: float,
	inAngle1: float,
	inAngleRange: AngleRange,
	inLambda: float,
	/,
	*,
	inRotationDirection: RotationDirection | None = None,
	inInverse: bool = False
)
-> outAngle: float

Parameters

Name Type Default Description
Input value inAngle0 float
Input value inAngle1 float
Input value inRotationDirection RotationDirection | None None Clockwise, counter-clockwise or auto
Input value inAngleRange AngleRange
Input value inLambda float Interpolation between the input angles where 0.0 value is equal to inAngle0 and 1.0 to inAngle1
Input value inInverse bool False
Output value outAngle float