projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added ball to ball collisions
[physics.git]
/
src
/
Vector2.h
diff --git
a/src/Vector2.h
b/src/Vector2.h
index
00b921b
..
13ffd88
100644
(file)
--- 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;