-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTurboTrig.h
38 lines (30 loc) · 836 Bytes
/
TurboTrig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
==============================================================
TurboTrig Library
==============================================================
i.bilux@gmail.com (C) 2015
This is a library to quickly do common trigonometry functions
on Arduinos/other microprocessors.
This is the main header file.
==============================================================
*/
//Include Guard:
#ifndef TurboTrig_h
#define TurboTrig_h
//Arduino libraries:
#include "Arduino.h"
class Turbo_Trig {
public:
Turbo_Trig();
int floatToInt(float input);
float sin(float rad);
float cos(float rad);
float sinx(int deg);
float cosx(int deg);
float acos(float num);
float asin(float num);
float atan(float opp, float adj);
};
//Create class to use:
extern Turbo_Trig TurboTrig;
#endif //#ifndef TurboTrig_h