Interface IPoint

Index

Properties

Methods

Properties

public column: number

public constructor: IPointStatic

public row: number

Methods

public add(other: IPoint): IPoint

Parameters

Returns

IPoint

public add(other: Array<number>): IPoint

Parameters

  • other: Array<number>

Returns

IPoint

public add(other: { row: number; column: number; }): IPoint

Parameters

  • other: { row: number; column: number; }

Returns

IPoint

public compare(other: IPoint): number

Parameters

Returns

number

public copy(): IPoint

Returns

IPoint

public freeze(): IPoint

Returns

IPoint

public isEqual(other: IPoint): boolean

Parameters

Returns

boolean

public isGreaterThan(other: IPoint): boolean

Parameters

Returns

boolean

public isGreaterThanOrEqual(other: IPoint): boolean

Parameters

Returns

boolean

public isLessThan(other: IPoint): boolean

Parameters

Returns

boolean

public isLessThanOrEqual(other: IPoint): boolean

Parameters

Returns

boolean

public serialize(): Array<number>

Returns

Array<number>

public splitAt(column: number): IPoint[]

Parameters

  • column: number

Returns

IPoint[]

public toArray(): Array<number>

Returns

Array<number>

public translate(delta: IPoint): IPoint

Parameters

Returns

IPoint

public translate(delta: Array<number>): IPoint

Parameters

  • delta: Array<number>

Returns

IPoint

public translate(delta: { row: number; column: number; }): IPoint

Parameters

  • delta: { row: number; column: number; }

Returns

IPoint