add Point.copy
This commit is contained in:
parent
644b1a4828
commit
362c7ea52d
@ -31,3 +31,7 @@ end
|
|||||||
function Point:__tostring()
|
function Point:__tostring()
|
||||||
return "("..self.x..","..self.y..")"
|
return "("..self.x..","..self.y..")"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Point:copy()
|
||||||
|
return Point:new(self.x, self.y)
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user