Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/vector2f.h')
-rw-r--r--src/math/vector2f.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/vector2f.h b/src/math/vector2f.h
index ee2d044..6258d85 100644
--- a/src/math/vector2f.h
+++ b/src/math/vector2f.h
@@ -109,6 +109,12 @@ private:
float coord[2];
};
+/// distance between two vectors
+float distance(const Vector2f& first, const Vector2f& second);
+
+/// distance between two vectors squared
+float distancesquared(const Vector2f& first, const Vector2f& second);
+
}
#endif // __INCLUDED_MATH_VECTOR2F_H__