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