Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Point

Describes a point.

Hierarchy

  • Point

Implements

  • Serializable

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Point(x: number, y: number): Point
  • Initializes a new instance of the Point class.

    Parameters

    • x: number

      The horizontal position.

    • y: number

      The vertical position.

    Returns Point

Properties

x

x: number

Gets or sets the horizontal position

y

y: number

Gets or sets the vertical position

Static origin

origin: Point = new Point(0, 0)

Gets a point with the coordinates (0,0).

Methods

Private serialize

  • serialize(target: BufferWriter): void
  • Parameters

    • target: BufferWriter

    Returns void

Static Private create

  • Parameters

    Returns Point

Generated using TypeDoc