A 2D point, expressed as {x, y}.

interface Point {
    x: number;
    y: number;
}

Properties

x y

Properties

x: number

The x-coordinate

y: number

The y-coordinate