sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
arm_inlines_rotation.h File Reference

Rotation inlines. More...

#include <math.h>
Include dependency graph for arm_inlines_rotation.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  sCoord2D
 2D coordinates structure More...
 

Typedefs

typedef struct sCoord2D sCoord2D
 

Functions

sCoord2D rotate_2D (const sCoord2D c, const SWORD angle)
 2D Coordinates rotation
 

Detailed Description

Rotation inlines.

Author
SMFSW

Typedef Documentation

◆ sCoord2D

typedef struct sCoord2D sCoord2D

Function Documentation

◆ rotate_2D()

sCoord2D rotate_2D ( const sCoord2D c,
const SWORD angle )
inline

2D Coordinates rotation

Note
Counter clockwise rotation
MISRA C:2012 Deviations
Function scope deviation granted for:
Rule-15.5 - Advisory: single point of exit (misra-c2012-15.5)
Parameters
[in]c- Coordinates to rotate
[in]angle- Rotation angle (in degrees, counter clockwise)
Returns
Rotated coordinates