If a function receives a point as an argument, it can be one of several things:
- You can specify two parameters
x, ydirectly as arguments of the function. E.g.selection:contains(8, 20) - You can specify an object with
xandyproperties. E.g.selection:contains{ x=8, y=20 } - You can specify an array with two elements:
E.g.
selection:contains{ 8, 20 } - You can specify a
Pointinstance: E.g.selection:contains(Point(8, 20))
Point()
Point(otherPoint)
Point(x, y)
Point{x=number, y=number}
Point{number, number}Creates a new Point instance with the given coordinates (or x=y=0
if they are not specified).
local x = point.x
point.x = newXlocal y = point.y
point.y = newY