diff options
author | aap <aap@papnet.eu> | 2019-06-19 14:06:13 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-19 14:06:13 +0200 |
commit | 78e33785ecfd176616b1a1b1588c771b978a4c19 (patch) | |
tree | 6abde4ca51c0f477ce63288215b510a462e52e50 /src/math/Vector2D.h | |
parent | f8438e8ab6b7de932ac6cf20ca2e1e70810b0030 (diff) |
cleanup on CPed and CPedType
Diffstat (limited to 'src/math/Vector2D.h')
-rw-r--r-- | src/math/Vector2D.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -31,6 +31,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) { return v1.x*v2.y - v1.y*v2.x; |