fixed bug in make file wrt INCDIRS
[physics.git] / src / Vector2.h
index 00b921b..57a5541 100644 (file)
@@ -26,19 +26,20 @@ using std::string;
 class Vector2
 {
   public:
-    float x;
-    float y;
+    float m_fX;
+    float m_fY;
 
     Vector2();
     Vector2(float, float);
-    Vector2(const Vector2&);
-    ~Vector2();
 
     void zero();
     void unit();
 
     float angle() const;
     float length() const;
+    float sqrLength() const;
+
+    float dot(const Vector2&) const;
 
     Vector2 add(const Vector2&) const;
     Vector2 subtract(const Vector2&) const;