summaryrefslogtreecommitdiffstats
path: root/src/core/General.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-04-15 07:03:53 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-04-15 07:03:53 +0200
commitdaed13485ef47d9c8992e53e1a976fba237fca50 (patch)
treef8116c26ac5f95a77375d67daffddbeaa19177e0 /src/core/General.h
parentfix weather init (diff)
downloadre3-daed13485ef47d9c8992e53e1a976fba237fca50.tar
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.gz
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.bz2
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.lz
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.xz
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.zst
re3-daed13485ef47d9c8992e53e1a976fba237fca50.zip
Diffstat (limited to '')
-rw-r--r--src/core/General.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/General.h b/src/core/General.h
index f32846eb..77828854 100644
--- a/src/core/General.h
+++ b/src/core/General.h
@@ -90,6 +90,11 @@ public:
return -Atan2(x / y, 1.0f);
}
}
+
+ static float GetAngleBetweenPoints(float x1, float y1, float x2, float y2)
+ {
+ return RADTODEG(GetRadianAngleBetweenPoints(x1, y1, x2, y2));
+ }
// should return direction in 0-8 range. fits perfectly to peds' path directions.
static int GetNodeHeadingFromVector(float x, float y)