summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/math.hpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-07 22:25:54 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-07 22:25:54 +0200
commitdb8679443fb6fcd5f9a97abf3e25c9e64f256607 (patch)
tree3adaf7df7db0ce66302490f3e5e9cbf263645929 /include/godot_cpp/core/math.hpp
parent0eba81ef79b96922a0e1637f812e4e1df4d29a4c (diff)
parent65eeb94f75d00cf523da114de3587f930cdec13f (diff)
downloadredot-cpp-db8679443fb6fcd5f9a97abf3e25c9e64f256607.tar.gz
Merge pull request #885 from aaronfranke/core-data-structs
Update core data structures to match the engine
Diffstat (limited to 'include/godot_cpp/core/math.hpp')
-rw-r--r--include/godot_cpp/core/math.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/godot_cpp/core/math.hpp b/include/godot_cpp/core/math.hpp
index 78f90ca..9f33196 100644
--- a/include/godot_cpp/core/math.hpp
+++ b/include/godot_cpp/core/math.hpp
@@ -441,17 +441,17 @@ inline T abs(T x) {
return std::abs(x);
}
-inline double deg2rad(double p_y) {
+inline double deg_to_rad(double p_y) {
return p_y * Math_PI / 180.0;
}
-inline float deg2rad(float p_y) {
+inline float deg_to_rad(float p_y) {
return p_y * static_cast<float>(Math_PI) / 180.f;
}
-inline double rad2deg(double p_y) {
+inline double rad_to_deg(double p_y) {
return p_y * 180.0 / Math_PI;
}
-inline float rad2deg(float p_y) {
+inline float rad_to_deg(float p_y) {
return p_y * 180.f / static_cast<float>(Math_PI);
}