Point Class
Point is a small helper object with x and y fields. It is mainly used as input or output for click, swipe, and match objects.
new Point(x, y)
Create a coordinate pair.
let point = new Point(x, y);
console.log(point); // Point(x, y)point.x
Horizontal coordinate.
let point = new Point(x, y);
console.log(point.x); // xpoint.y
Vertical coordinate.
let point = new Point(x, y);
console.log(point.y); // ypoint.toString()
Readable debug string.
let point = new Point(x, y);
console.log(point.toString()); // Point(x, y)Example:
let p = new Point(300, 800);
click(p);