diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2015-11-19 10:41:20 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2015-11-19 10:41:20 -0300 |
| commit | d3eb9e8c54d4a93b2bed90a5988f9814377d409f (patch) | |
| tree | a8586037e25eb481fb386745bbcd9a63ced46898 /core/math/math_2d.h | |
| parent | 36d620c633be55ac402892bce816d4a9b4d67bee (diff) | |
| download | redot-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.h | 2 |
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) { |
