equal
deleted
inserted
replaced
12 class Vector:public Object { |
12 class Vector:public Object { |
13 public: |
13 public: |
14 enum Mode { DEG, RAD, GRAD }; |
14 enum Mode { DEG, RAD, GRAD }; |
15 |
15 |
16 Vector (int xx = 0, int yy = 0); |
16 Vector (int xx = 0, int yy = 0); |
|
17 Vector (const Vector &); |
17 virtual ~ Vector (); |
18 virtual ~ Vector (); |
18 |
19 |
19 int X (); |
20 int X (); |
20 int Y (); |
21 int Y (); |
21 |
22 |
27 double angle (Vector &); |
28 double angle (Vector &); |
28 void setMode (Mode m = RAD); |
29 void setMode (Mode m = RAD); |
29 |
30 |
30 private: |
31 private: |
31 Mode mode; |
32 Mode mode; |
|
33 |
32 int x; |
34 int x; |
33 int y; |
35 int y; |
34 }; |
36 }; |
35 } |
37 } |
36 #endif |
38 #endif |