From 78e33785ecfd176616b1a1b1588c771b978a4c19 Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 19 Jun 2019 14:06:13 +0200 Subject: cleanup on CPed and CPedType --- src/math/Vector2D.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/math/Vector2D.h') diff --git a/src/math/Vector2D.h b/src/math/Vector2D.h index 3c0013d4..fa32bd9b 100644 --- a/src/math/Vector2D.h +++ b/src/math/Vector2D.h @@ -30,6 +30,12 @@ public: } }; +inline float +DotProduct2D(const CVector2D &v1, const CVector2D &v2) +{ + return v1.x*v2.x + v1.y*v2.y; +} + inline float CrossProduct2D(const CVector2D &v1, const CVector2D &v2) { -- cgit v1.2.3