Class representing a 2D point with x and y coordinates.

Implements

Constructors

Properties

x y

Constructors

  • Creates a new Point instance.

    Parameters

    • Optional x: number = 0

      The x-coordinate.

    • Optional y: number = 0

      The y-coordinate.

    Returns Point

Properties

x: number = 0

The x-coordinate.

y: number = 0

The y-coordinate.