mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 13:12:34 +00:00
Added Vector.xy
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user