Represents an interface for a 2D point with x and y coordinates.

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

Implemented by

Properties

x y

Properties

x: number

The x-coordinate of the 2D point.

y: number

The y-coordinate of the 2D point.