add Point.__tostring
This commit is contained in:
parent
e648705e5b
commit
c0af34fd76
@ -28,3 +28,6 @@ function Point:abs()
|
|||||||
return math.sqrt(self.x ^ 2 + self.y ^ 2)
|
return math.sqrt(self.x ^ 2 + self.y ^ 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Point:__tostring()
|
||||||
|
return "("..self.x..","..self.y..")"
|
||||||
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user