Skip to content
导航

Class: Point

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Point(x?, y?)

Parameters

NameType
x?number | IPointData
y?number

Defined in

leafer/packages/math/src/Point.ts:9

Properties

x

x: number

Implementation of

IPoint.x

Defined in

leafer/packages/math/src/Point.ts:6


y

y: number

Implementation of

IPoint.y

Defined in

leafer/packages/math/src/Point.ts:7

Methods

set

set(x?, y?): void

Parameters

NameType
x?number
y?number

Returns

void

Implementation of

IPoint.set

Defined in

leafer/packages/math/src/Point.ts:13


copy

copy(point): IPoint

Parameters

NameType
pointIPointData

Returns

IPoint

Implementation of

IPoint.copy

Defined in

leafer/packages/math/src/Point.ts:17


clone

clone(): IPoint

Returns

IPoint

Implementation of

IPoint.clone

Defined in

leafer/packages/math/src/Point.ts:22


rotate

rotate(angle, center?): IPoint

Parameters

NameType
anglenumber
center?IPointData

Returns

IPoint

Implementation of

IPoint.rotate

Defined in

leafer/packages/math/src/Point.ts:26


toInnerOf

toInnerOf(matrix, to?): IPoint

Parameters

NameType
matrixIMatrixData
to?IPointData

Returns

IPoint

Implementation of

IPoint.toInnerOf

Defined in

leafer/packages/math/src/Point.ts:32


toOuterOf

toOuterOf(matrix, to?): IPoint

Parameters

NameType
matrixIMatrixData
to?IPointData

Returns

IPoint

Implementation of

IPoint.toOuterOf

Defined in

leafer/packages/math/src/Point.ts:37


getCenter

getCenter(to): IPointData

Parameters

NameType
toIPointData

Returns

IPointData

Implementation of

IPoint.getCenter

Defined in

leafer/packages/math/src/Point.ts:42


getDistance

getDistance(to): number

Parameters

NameType
toIPointData

Returns

number

Implementation of

IPoint.getDistance

Defined in

leafer/packages/math/src/Point.ts:46


getAngle

getAngle(to): number

Parameters

NameType
toIPointData

Returns

number

Implementation of

IPoint.getAngle

Defined in

leafer/packages/math/src/Point.ts:50


getAtan2

getAtan2(to): number

Parameters

NameType
toIPointData

Returns

number

Implementation of

IPoint.getAtan2

Defined in

leafer/packages/math/src/Point.ts:54


reset

reset(): void

Returns

void

Implementation of

IPoint.reset

Defined in

leafer/packages/math/src/Point.ts:58

Released under the MIT License.