Class Point

The Point class represents a point in 2D coordinate system. The origin {0, 0} is located in the top left corner of the relevant object.

Constructors

Properties

x y

Constructors

  • Initializes a point with the specified coordinates.

    Parameters

    • x: number

      The x-coordinate of the point to construct.

    • y: number

      The y-coordinate of the point to construct.

    Returns Point

Properties

x: number

The x-coordinate of the point.

y: number

The y-coordinate of the point.

Generated using TypeDoc