diff options
Diffstat (limited to 'src/math/vector3f.h')
-rw-r--r-- | src/math/vector3f.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/vector3f.h b/src/math/vector3f.h index 5d1fa41..20e47f2 100644 --- a/src/math/vector3f.h +++ b/src/math/vector3f.h @@ -148,6 +148,12 @@ const Vector3f crossproduct(Vector3f const & first, Vector3f const & second); /// vector dot product float dotproduct(const Vector3f& first, const Vector3f& second); +/// distance between two vectors +float distance(const Vector3f& first, const Vector3f& second); + +/// distance between two vectors squared +float distancesquared(const Vector3f& first, const Vector3f& second); + } // namespace math #endif // __INCLUDED_MATH_VECTOR3F_H__ |