diff --git a/code/point.lua b/code/point.lua index aef9aa0..3c56630 100644 --- a/code/point.lua +++ b/code/point.lua @@ -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