From 71b1d8bea34f72f5fb220a1816f6c9bfaee522e1 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 22 Nov 2021 09:57:58 +0800 Subject: *misc --- Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Data/BuiltIn/Libraries') diff --git a/Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua b/Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua index 24aa233..0fd66c9 100644 --- a/Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua +++ b/Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua @@ -26,6 +26,14 @@ function Vector2:get_yx() return v end +function Vector2:get_height() + return self.y +end + +function Vector2:get_width() + return self.x +end + function Vector2:Set(other) self.x = other.x self.y = other.y -- cgit v1.1-26-g67d0