Swadge ESP32-S2
APIs to develop for the Magfest Swadge
Toggle main menu visibility
Loading...
Searching...
No Matches
trigonometry.h
Go to the documentation of this file.
1
25
26
#ifndef _TRIGONOMETRY_H_
27
#define _TRIGONOMETRY_H_
28
29
#include <stdint.h>
30
31
extern
const
int16_t
sin1024
[91];
32
extern
const
uint16_t
tan1024
[91];
33
34
int16_t
getSin1024
(int16_t degree);
35
int16_t
getCos1024
(int16_t degree);
36
int32_t
getTan1024
(int16_t degree);
37
int32_t
cordicAtan2
(int32_t x, int32_t y);
38
int16_t
getAtan2
(int32_t y, int32_t x);
39
40
#endif
sin1024
const int16_t sin1024[91]
Definition
trigonometry.c:21
tan1024
const uint16_t tan1024[91]
Definition
trigonometry.c:31
getTan1024
int32_t getTan1024(int16_t degree)
Definition
trigonometry.c:132
getCos1024
int16_t getCos1024(int16_t degree)
Definition
trigonometry.c:94
getAtan2
int16_t getAtan2(int32_t y, int32_t x)
Calculate the angle of the line from the origin to (x, y), in degrees.
Definition
trigonometry.c:300
cordicAtan2
int32_t cordicAtan2(int32_t x, int32_t y)
CORDIC approximation of arctan.
Definition
trigonometry.c:171
getSin1024
int16_t getSin1024(int16_t degree)
Definition
trigonometry.c:56
main
utils
math
trigonometry.h
Generated by
1.17.0