summaryrefslogtreecommitdiffstats
path: root/core/math/math_2d.h
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.h
parent36d620c633be55ac402892bce816d4a9b4d67bee (diff)
downloadredot-engine-d3eb9e8c54d4a93b2bed90a5988f9814377d409f.tar.gz
-remove Vector2.atan2() replaced by Vector2.angle(), fixes #2260
Diffstat (limited to 'core/math/math_2d.h')
-rw-r--r--core/math/math_2d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/math_2d.h b/core/math/math_2d.h
index 5e6cefd114..3d40e24091 100644
--- a/core/math/math_2d.h
+++ b/core/math/math_2d.h
@@ -133,7 +133,7 @@ struct Vector2 {
bool operator<(const Vector2& p_vec2) const { return (x==p_vec2.x)?(y<p_vec2.y):(x<p_vec2.x); }
bool operator<=(const Vector2& p_vec2) const { return (x==p_vec2.x)?(y<=p_vec2.y):(x<=p_vec2.x); }
- real_t atan2() const;
+ real_t angle() const;
void set_rotation(float p_radians) {