Constructors
constructor
- new Point(x?: number, y?: number): Point
Parameters
- x: number = 0
- y: number = 0
Properties
Accessors
x
- get x(): number
Returns number
- set x(x: number): void
Returns void
y
- get y(): number
Returns number
- set y(y: number): void
Returns void
Methods
equals
- equals(p: null | Point): boolean
Returns boolean
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.