From df0e28fe43ae40efe13df1dacc8f2fc617cc1e4c Mon Sep 17 00:00:00 2001 From: Zhehang Ding Date: Mon, 7 Feb 2022 01:21:36 -0800 Subject: Add missing Vector2::operator Vector2i() --- include/godot_cpp/variant/vector2.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'include/godot_cpp') diff --git a/include/godot_cpp/variant/vector2.hpp b/include/godot_cpp/variant/vector2.hpp index f7ae8b0..56a2c95 100644 --- a/include/godot_cpp/variant/vector2.hpp +++ b/include/godot_cpp/variant/vector2.hpp @@ -151,6 +151,7 @@ public: real_t aspect() const { return width / height; } operator String() const; + operator Vector2i() const; inline Vector2() {} inline Vector2(real_t p_x, real_t p_y) { -- cgit v1.2.3