Skip to main content

Class: Point

Constructors​

constructor​

• new Point(x, y)

Parameters​

NameType
xnumber
ynumber

Defined in​

src/Point.ts:29

Properties​

x​

• x: number

Defined in​

src/Point.ts:30


y​

• y: number

Defined in​

src/Point.ts:31

Methods​

parse​

â–¸ Static parse(point, defaultValue?): Point

Parameters​

NameTypeDefault value
pointstringundefined
defaultValuenumber0

Returns​

Point

Defined in​

src/Point.ts:5


parseScale​

â–¸ Static parseScale(scale, defaultValue?): Point

Parameters​

NameTypeDefault value
scalestringundefined
defaultValuenumber1

Returns​

Point

Defined in​

src/Point.ts:11


parsePath​

â–¸ Static parsePath(path): Point[]

Parameters​

NameType
pathstring

Returns​

Point[]

Defined in​

src/Point.ts:17


angleTo​

â–¸ angleTo(point): number

Parameters​

NameType
pointPoint

Returns​

number

Defined in​

src/Point.ts:34


applyTransform​

â–¸ applyTransform(transform): void

Parameters​

NameType
transformMatrixValue

Returns​

void

Defined in​

src/Point.ts:38