--- a/pmc/include/vector.h
+++ b/pmc/include/vector.h
@@ -8,27 +8,29 @@
#include <object.h>
-class Vector:public Object {
- public:
- enum Mode { DEG, RAD, GRAD };
+namespace algebra {
+ class Vector:public Object {
+ public:
+ enum Mode { DEG, RAD, GRAD };
- Vector (int xx = 0, int yy = 0);
- virtual ~ Vector ();
+ Vector (int xx = 0, int yy = 0);
+ virtual ~ Vector ();
- int X ();
- int Y ();
+ int X ();
+ int Y ();
- Vector operator+ (Vector&);
- Vector operator- (Vector&);
- double abs ();
+ Vector operator+ (Vector &);
+ Vector operator- (Vector &);
+ double abs ();
+
+ void vector ();
+ double angle (Vector &);
+ void setMode (Mode m = RAD);
- void vector ();
- double angle (Vector&);
- void setMode (Mode m = RAD);
-
- private:
- Mode mode;
- int x;
- int y;
-};
+ private:
+ Mode mode;
+ int x;
+ int y;
+ };
+}
#endif