Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Interpolations » LerpAngles
Linearly interpolates between two angles in the direction of minimum turn.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::LerpAngles ( float inAngle0, float inAngle1, atl::Optional<avl::RotationDirection::Type> inRotationDirection, avl::AngleRange::Type inAngleRange, float inLambda, bool inInverse, float& outAngle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inAngle0 | float | |||
inAngle1 | float | |||
inRotationDirection | Optional<RotationDirection::Type> | NIL | Clockwise, counter-clockwise or auto | |
inAngleRange | AngleRange::Type | |||
inLambda | float | Interpolation between the input angles where 0.0 value is equal to inAngle0 and 1.0 to inAngle1 | ||
inInverse | bool | |||
outAngle | float& |
Examples
Remarks
Please note that:
- interpolation begins at inAngle0,
- for positive inLambda values interpolation is performed in the direction given in the inRotationDirection parameter while for negative - in the inverted direction.