summaryrefslogtreecommitdiffstats
path: root/core/math/math_2d.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-11-19 10:41:20 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-11-19 10:41:20 -0300
commitd3eb9e8c54d4a93b2bed90a5988f9814377d409f (patch)
treea8586037e25eb481fb386745bbcd9a63ced46898 /core/math/math_2d.cpp
parent36d620c633be55ac402892bce816d4a9b4d67bee (diff)
downloadredot-engine-d3eb9e8c54d4a93b2bed90a5988f9814377d409f.tar.gz
-remove Vector2.atan2() replaced by Vector2.angle(), fixes #2260
Diffstat (limited to 'core/math/math_2d.cpp')
-rw-r--r--core/math/math_2d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/math_2d.cpp b/core/math/math_2d.cpp
index 88717723ce..ce03f089e5 100644
--- a/core/math/math_2d.cpp
+++ b/core/math/math_2d.cpp
@@ -29,7 +29,7 @@
#include "math_2d.h"
-real_t Vector2::atan2() const {
+real_t Vector2::angle() const {
return Math::atan2(x,y);
}
@@ -165,7 +165,7 @@ Vector2 Vector2::floor() const {
Vector2 Vector2::rotated(float p_by) const {
Vector2 v;
- v.set_rotation(atan2()+p_by);
+ v.set_rotation(angle()+p_by);
v*=length();
return v;
}