diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-11 11:56:33 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-10-11 11:56:33 +0200 |
commit | c4d48213273aad8d1c076ea44238dd65c75d9961 (patch) | |
tree | 896772adf77ae80553b9c31b281e234eca10e62a /src/math/Vector2D.h | |
parent | Fix sniper and water creatures bug, mark some files (diff) | |
download | re3-c4d48213273aad8d1c076ea44238dd65c75d9961.tar re3-c4d48213273aad8d1c076ea44238dd65c75d9961.tar.gz re3-c4d48213273aad8d1c076ea44238dd65c75d9961.tar.bz2 re3-c4d48213273aad8d1c076ea44238dd65c75d9961.tar.lz re3-c4d48213273aad8d1c076ea44238dd65c75d9961.tar.xz re3-c4d48213273aad8d1c076ea44238dd65c75d9961.tar.zst re3-c4d48213273aad8d1c076ea44238dd65c75d9961.zip |
Diffstat (limited to '')
-rw-r--r-- | src/math/Vector2D.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/math/Vector2D.h b/src/math/Vector2D.h index 2c4e57b5..deabd0b1 100644 --- a/src/math/Vector2D.h +++ b/src/math/Vector2D.h @@ -53,6 +53,9 @@ public: CVector2D operator/(float t) const { return CVector2D(x/t, y/t); } + CVector2D operator-() const { + return CVector2D(-x, -y); + } }; inline float |