Point Object
Description
Represents a pair of x- and y-coordinates that defines a point in a two-dimensional plane.
Syntax
{
x: <number>,
y: <number>
}Examples
The following example demonstrates Point in a practical document-editing workflow. It represents a pair of x- and y-coordinates that defines a point in a two-dimensional plane.
function inspectPoint(point) {
console.log("x:", point.x);
console.log("y:", point.y);
}