mirror of
https://github.com/vrld/HC.git
synced 2024-12-08 15:04:23 +00:00
Remove double definition of Shape:moveTo()
This commit is contained in:
parent
ec10437644
commit
1d8fee8b7a
@ -57,11 +57,6 @@ end
|
||||
local Shape = Class{name = 'Shape', function(self, t)
|
||||
self._type = t
|
||||
end}
|
||||
function Shape:moveTo(x,y)
|
||||
local current = vector( self:center() )
|
||||
local to = vector.isvector(x) and x or vector(x,y)
|
||||
self:move( to-current )
|
||||
end
|
||||
|
||||
function Shape:moveTo(x,y)
|
||||
if y then x = vector(x,y) end
|
||||
|
Loading…
Reference in New Issue
Block a user