MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > a) Common Functions > leNormalizeAngle Function
MPLAB® Harmony Graphics Suite
leNormalizeAngle Function
C
LIB_EXPORT int32_t leNormalizeAngle(
    int32_t t
);
Parameters
Parameters 
Description 
int32_t t 
angle (in degrees) 
Returns

int32_t - normalize an angle in degrees.

Example

t = -5, return value is 355 t = 450, return value is 90

MPLAB® Harmony Graphics Suite