aboutsummaryrefslogtreecommitdiff
path: root/core/math/math_2d.h
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-13 20:00:43 -0300
committerJuan Linietsky2017-01-13 20:00:43 -0300
commit6e88b1096a6876f919f70e39638e8e24fcdefc7a (patch)
treefb08730c2735138019f1815ab9a3233bad61b1e0 /core/math/math_2d.h
parent00ec16e3f3a98339ec7462675fa41b3dd240861b (diff)
downloadgodot-6e88b1096a6876f919f70e39638e8e24fcdefc7a.tar.gz
godot-6e88b1096a6876f919f70e39638e8e24fcdefc7a.tar.zst
godot-6e88b1096a6876f919f70e39638e8e24fcdefc7a.zip
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 7896299c2..a24c4266e 100644
--- a/core/math/math_2d.h
+++ b/core/math/math_2d.h
@@ -154,7 +154,7 @@ struct Vector2 {
Vector2 floor() const;
Vector2 snapped(const Vector2& p_by) const;
- real_t get_aspect() const { return width/height; }
+ real_t aspect() const { return width/height; }
operator String() const { return String::num(x)+", "+String::num(y); }