X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FVector2.h;h=57a554114fc2f3dd4eff9a3f85611943af51e88f;hb=f5380bc68a49710df6c10b089da232afb791344e;hp=00b921b7494bd208c11cd0c2980199b6fd71754c;hpb=e68f847b245153427266841ae724d602ca434c29;p=physics.git diff --git a/src/Vector2.h b/src/Vector2.h index 00b921b..57a5541 100644 --- a/src/Vector2.h +++ b/src/Vector2.h @@ -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;