-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdegrees.h
34 lines (31 loc) · 903 Bytes
/
degrees.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
#ifndef DEGREES_H
#define DEGREES_H
#include <cmath>
#define PI 3.14159265
namespace SSJ {
class Degrees {
float degrees;
public:
Degrees();
Degrees(float);
Degrees(int);
float getDegrees();
void operator= (const float &);
void operator-= (const float &);
void operator-= ( Degrees );
void operator+= (const float &);
void operator+= ( Degrees );
bool operator== (const float &);
bool operator== (const int &);
bool operator< (const float &);
bool operator> (const float &);
bool operator>= (const float &);
bool operator<= (const float &);
Degrees operator+ (const float &);
Degrees operator+ ( Degrees );
Degrees &operator- (const float &);
Degrees &operator- ( Degrees );
float getRadians();
};
}
#endif // DEGREES_H