Added Vector.xy

This commit is contained in:
2019-10-25 13:57:23 -05:00
parent 48d2924c9b
commit 89a54e90a1

View File

@@ -57,6 +57,10 @@ module CyberarmEngine
end
end
def xy
Vector.new(@x, @y)
end
# Performs math operation, excluding @weight
private def operator(function, other)
if other.is_a?(Numeric)