pmc/include/vector.h
changeset 45 7197576fedcf
parent 43 cf8c1b5127b2
child 54 c064ce9f40f5
--- 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