add Point.__tostring

This commit is contained in:
binarycat 2022-03-11 14:07:33 -05:00
parent e648705e5b
commit c0af34fd76

View File

@ -28,3 +28,6 @@ function Point:abs()
return math.sqrt(self.x ^ 2 + self.y ^ 2)
end
function Point:__tostring()
return "("..self.x..","..self.y..")"
end