X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2FVector2.h;h=13ffd883503bec2b7740cb715642e5801166ddbe;hp=00b921b7494bd208c11cd0c2980199b6fd71754c;hb=54fe85c5d10e60da6a9c9bbde11f7215723da572;hpb=e7005f1741c5dd50c07f0449670ba704507a3fec 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;