Project Submission (late)
Dependencies: mbed
Vector2Di/Vector2Di.h@0:72f372170a73, 2019-05-10 (annotated)
- Committer:
- el17tc
- Date:
- Fri May 10 08:07:10 2019 +0000
- Revision:
- 0:72f372170a73
- Child:
- 3:83e79d31930c
Save at functioning version;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17tc | 0:72f372170a73 | 1 | #ifndef VECTOR2DI_H |
el17tc | 0:72f372170a73 | 2 | #define VECTOR2DI_H |
el17tc | 0:72f372170a73 | 3 | |
el17tc | 0:72f372170a73 | 4 | #include <math.h> |
el17tc | 0:72f372170a73 | 5 | #define PI 3.14159265358979323846 |
el17tc | 0:72f372170a73 | 6 | |
el17tc | 0:72f372170a73 | 7 | class Vector2Di { |
el17tc | 0:72f372170a73 | 8 | |
el17tc | 0:72f372170a73 | 9 | public: |
el17tc | 0:72f372170a73 | 10 | |
el17tc | 0:72f372170a73 | 11 | int x; |
el17tc | 0:72f372170a73 | 12 | int y; |
el17tc | 0:72f372170a73 | 13 | Vector2Di operator -(); |
el17tc | 0:72f372170a73 | 14 | void addVector(Vector2Di v); |
el17tc | 0:72f372170a73 | 15 | void rotateVector(double angle); |
el17tc | 0:72f372170a73 | 16 | |
el17tc | 0:72f372170a73 | 17 | }; |
el17tc | 0:72f372170a73 | 18 | |
el17tc | 0:72f372170a73 | 19 | #endif |