X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FVector2.h;h=13ffd883503bec2b7740cb715642e5801166ddbe;hb=a5aefcc603bef438a25cabaacbcc9797c2e32722;hp=00b921b7494bd208c11cd0c2980199b6fd71754c;hpb=e68f847b245153427266841ae724d602ca434c29;p=physics.git diff --git a/src/Vector2.h b/src/Vector2.h index 00b921b..13ffd88 100644 --- a/src/Vector2.h +++ b/src/Vector2.h @@ -39,6 +39,9 @@ class Vector2 float angle() const; float length() const; + float sqrLength() const; + + float dot(const Vector2&) const; Vector2 add(const Vector2&) const; Vector2 subtract(const Vector2&) const;