diff options
author | chai <chaifix@163.com> | 2021-11-22 09:57:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-22 09:57:58 +0800 |
commit | 71b1d8bea34f72f5fb220a1816f6c9bfaee522e1 (patch) | |
tree | ea155d9eb6024c1a1e0d00cfbcb65c01add43118 /Data/BuiltIn | |
parent | 0944b2f95b9971d62f35b9dcc38d28a27e278249 (diff) |
Diffstat (limited to 'Data/BuiltIn')
-rw-r--r-- | Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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
|