diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-10-16 01:22:57 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-11-16 20:40:49 +0100 |
commit | 8fb7e622a6a4d6651442764e4e22e000f455f77b (patch) | |
tree | c0a47367d1778fb3903be27067ad0c3731e76668 /core/math/vector2.h | |
parent | 5045f46a5c384d83504be3d0cf101e403700b1e3 (diff) |
Rename built-in `SGN()` macro to `SIGN()`
This matches the name of the GDScript function (except it's uppercase
here).
Diffstat (limited to 'core/math/vector2.h')
-rw-r--r-- | core/math/vector2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/vector2.h b/core/math/vector2.h index 332c0475fa..0a7b9d3faf 100644 --- a/core/math/vector2.h +++ b/core/math/vector2.h @@ -345,7 +345,7 @@ struct Vector2i { bool operator!=(const Vector2i &p_vec2) const; real_t aspect() const { return width / (real_t)height; } - Vector2i sign() const { return Vector2i(SGN(x), SGN(y)); } + Vector2i sign() const { return Vector2i(SIGN(x), SIGN(y)); } Vector2i abs() const { return Vector2i(ABS(x), ABS(y)); } Vector2i clamp(const Vector2i &p_min, const Vector2i &p_max) const; |