equal
deleted
inserted
replaced
|
1 /*** |
|
2 * |
|
3 * $Id: pmc.h,v 1.1.1.1 2008-04-28 17:33:22 mbroeker Exp $ |
|
4 * $Source: /development/cpp/pmc/include/pmc.h,v $ |
|
5 */ |
|
6 |
|
7 #ifndef PMC_H |
|
8 #define PMC_H |
|
9 |
|
10 #include <iostream> |
|
11 #include <object.h> |
|
12 |
|
13 namespace pmc { |
|
14 class Vector:public Object { |
|
15 private: |
|
16 int x; |
|
17 int y; |
|
18 int z; |
|
19 |
|
20 public: |
|
21 enum Mode { DEG, RAD, GRAD }; |
|
22 |
|
23 Vector (int xx = 0, int yy = 0, int zz = 0); |
|
24 virtual ~ Vector (); |
|
25 |
|
26 int X (); |
|
27 int Y (); |
|
28 int Z (); |
|
29 |
|
30 Vector operator+ (Vector); |
|
31 Vector operator- (Vector); |
|
32 int operator* (Vector); |
|
33 double abs (); |
|
34 |
|
35 void vector (); |
|
36 double angle (Vector); |
|
37 void setMode (Mode m = RAD); |
|
38 |
|
39 private: |
|
40 Mode mode; |
|
41 }; |
|
42 } |
|
43 #endif |