diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-10-17 13:23:31 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-10-17 13:23:31 +0200 |
commit | ca64a49af11c8d3cca79587641e5ad464cb276f3 (patch) | |
tree | d0380dd61401913eb441331f74d8a3d729a63c1f /src/math/Vector.h | |
parent | Pickup fixes (diff) | |
download | re3-ca64a49af11c8d3cca79587641e5ad464cb276f3.tar re3-ca64a49af11c8d3cca79587641e5ad464cb276f3.tar.gz re3-ca64a49af11c8d3cca79587641e5ad464cb276f3.tar.bz2 re3-ca64a49af11c8d3cca79587641e5ad464cb276f3.tar.lz re3-ca64a49af11c8d3cca79587641e5ad464cb276f3.tar.xz re3-ca64a49af11c8d3cca79587641e5ad464cb276f3.tar.zst re3-ca64a49af11c8d3cca79587641e5ad464cb276f3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/math/Vector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/Vector.h b/src/math/Vector.h index badc40e3..082b296f 100644 --- a/src/math/Vector.h +++ b/src/math/Vector.h @@ -120,7 +120,7 @@ Distance2D(const CVector &v1, const CVector &v2) { float x = v2.x - v1.x; float y = v2.y - v1.y; - return Sqrt(sq(x) + sq(y)); + return Sqrt(x*x + y*y); } class CMatrix; |