summaryrefslogtreecommitdiffstats
path: root/src/core/General.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-08-10 09:44:39 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-08-10 09:44:39 +0200
commit6a7fdadeaab25e7b17557c30cea4c8be094d9bd9 (patch)
tree76a3086f2819de9248a2a2cabf00f24eeb5e82b0 /src/core/General.h
parentMore CCarCtrl (diff)
parentfinished CPathFind (diff)
downloadre3-6a7fdadeaab25e7b17557c30cea4c8be094d9bd9.tar
re3-6a7fdadeaab25e7b17557c30cea4c8be094d9bd9.tar.gz
re3-6a7fdadeaab25e7b17557c30cea4c8be094d9bd9.tar.bz2
re3-6a7fdadeaab25e7b17557c30cea4c8be094d9bd9.tar.lz
re3-6a7fdadeaab25e7b17557c30cea4c8be094d9bd9.tar.xz
re3-6a7fdadeaab25e7b17557c30cea4c8be094d9bd9.tar.zst
re3-6a7fdadeaab25e7b17557c30cea4c8be094d9bd9.zip
Diffstat (limited to 'src/core/General.h')
-rw-r--r--src/core/General.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/General.h b/src/core/General.h
index 351243be..3d191d84 100644
--- a/src/core/General.h
+++ b/src/core/General.h
@@ -74,6 +74,7 @@ public:
return result;
}
+ // Returns an angle such that x2/y2 looks at x1/y1 with its forward vector if rotated by that angle
static float GetRadianAngleBetweenPoints(float x1, float y1, float x2, float y2)
{
float x = x2 - x1;