You are here: Start » AVL.NET » Invoke.LerpAngles

Invoke.LerpAngles

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

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void LerpAngles
(
	float inAngle0,
	float inAngle1,
	Optional<Avl.RotationDirection> inRotationDirection,
	Avl.AngleRange inAngleRange,
	float inLambda,
	bool inInverse,
	out float outAngle
)

Parameters

Name Type Range Default Description
inAngle0float
inAngle1float
inRotationDirectionAtl.Optional<Avl.RotationDirection>Clockwise, counter-clockwise or auto. Default value: atl::NIL.
inAngleRangeAvl.AngleRange_0_180Default value: _0_180.
inLambdafloatInterpolation between the input angles where 0.0 value is equal to inAngle0 and 1.0 to inAngle1.
inInversebool
outAnglefloat

See also