Skip to content

Interface: IPoint

Hierarchy

Implemented by

Table of contents

Properties

Methods

Properties

x

x: number

Inherited from

IPointData.x

Defined in

leafer/packages/interface/src/math/IMath.ts:5


y

y: number

Inherited from

IPointData.y

Defined in

leafer/packages/interface/src/math/IMath.ts:6

Methods

set

set(x?, y?): IPoint

Parameters

NameType
x?number | IPointData
y?number

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:33


get

get(): IPointData

Returns

IPointData

Defined in

leafer/packages/interface/src/math/IMath.ts:34


clone

clone(): IPoint

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:35


move

move(x, y): IPoint

Parameters

NameType
xnumber
ynumber

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:37


scale

scale(scaleX, scaleY?): IPoint

Parameters

NameType
scaleXnumber
scaleY?number

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:38


scaleOf

scaleOf(origin, scaleX, scaleY?): IPoint

Parameters

NameType
originIPointData
scaleXnumber
scaleY?number

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:39


rotate

rotate(rotation, origin?): IPoint

Parameters

NameType
rotationnumber
origin?IPointData

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:40


rotateOf

rotateOf(origin, rotation): IPoint

Parameters

NameType
originIPointData
rotationnumber

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:41


getRotation

getRotation(origin, to, toOrigin?): number

Parameters

NameType
originIPointData
toIPointData
toOrigin?IPointData

Returns

number

Defined in

leafer/packages/interface/src/math/IMath.ts:42


toInnerOf

toInnerOf(matrix, to?): IPoint

Parameters

NameType
matrixIMatrixData
to?IPointData

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:44


toOuterOf

toOuterOf(matrix, to?): IPoint

Parameters

NameType
matrixIMatrixData
to?IPointData

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:45


getCenter

getCenter(to): IPoint

Parameters

NameType
toIPointData

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:47


getDistance

getDistance(to): number

Parameters

NameType
toIPointData

Returns

number

Defined in

leafer/packages/interface/src/math/IMath.ts:48


getDistancePoint

getDistancePoint(to, distance, changeTo?): IPoint

Parameters

NameType
toIPointData
distancenumber
changeTo?boolean

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:49


getAngle

getAngle(to): number

Parameters

NameType
toIPointData

Returns

number

Defined in

leafer/packages/interface/src/math/IMath.ts:51


getAtan2

getAtan2(to): number

Parameters

NameType
toIPointData

Returns

number

Defined in

leafer/packages/interface/src/math/IMath.ts:52


reset

reset(): IPoint

Returns

IPoint

Defined in

leafer/packages/interface/src/math/IMath.ts:54

Released under the MIT License.