Options
All
  • Public
  • Public/Protected
  • All
Menu

Implements a 2-dimensional vector with double precision coordinates.

Constructor: mxPoint

Constructs a new point for the optional x and y coordinates. If no coordinates are given, then the default values for and are used.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Point(x?: number, y?: number): Point

Properties

_x

_x: number = 0

Holds the x-coordinate of the point. Default is 0.

_y

_y: number = 0

Holds the y-coordinate of the point. Default is 0.

Accessors

x

  • get x(): number
  • set x(x: number): void

y

  • get y(): number
  • set y(y: number): void

Methods

clone

equals

  • equals(p: null | Point): boolean

Generated using TypeDoc