File

src/utils/point.ts

Description

Represents an ordered pair of integer x- and y-coordinates.

Index

Properties
  • Private _x
  • Private _y
Accessors

Constructor

constructor(x: number, y: number)

Creates an instance of Point.

Parameters :
Name Type Optional
x number No
y number No

Properties

Private _x
Type : number

x-coordinate of this Point.

Private _y
Type : number

y-coordinate of this Point.

Accessors

y
gety()

Gets the y-coordinate of this Point.

Returns : number
sety(y: number)

Sets the y-coordinate of this Point.

Parameters :
Name Type Optional
y number No
Returns : void
x
getx()

Gets the x-coordinate of this Point.

Returns : number
setx(x: number)

Sets the x-coordinate of this Point.

Parameters :
Name Type Optional
x number No
Returns : void
isEmpty
getisEmpty()

Gets a value indicating whether this Point is empty.

Returns : boolean

results matching ""

    No results matching ""