An object representing a point in 2D space.

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

Properties

x y

Properties

x: number

The x coordinate of the point.

y: number

The y coordinate of the point.