Interface: PointLike

PointLike

Common interface for points. Both Point and ObservablePoint implement it

Properties:
Name Type Description
copyFrom (p: PointData) => this

Copies x and y from the given point

copyTo (p: T) => T

Copies x and y into the given point

equals (p: PointData) => boolean

Returns true if the given point is equal to this point

set (x: number, y: number) => void

Sets the point to a new x and y position. If y is omitted, both x and y will be set to x.

Extends

Members

copyFrom (p: PointData) => this

Copies x and y from the given point

copyTo (p: T) => T

Copies x and y into the given point

equals (p: PointData) => boolean

Returns true if the given point is equal to this point

set (x: number, y: number) => void

Sets the point to a new x and y position. If y is omitted, both x and y will be set to x.