Interface _2DMatrix

Hierarchy

Index

Properties

Methods

Properties

public a: number

public b: number

public bubbleParent: boolean

public c: number

public d: number

public tx: number

public ty: number

Methods

public addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public applyProperties(props: Dictionary)

Parameters

public fireEvent(name: string, event: Dictionary)

Parameters

public getA(): number

Returns

number

public getB(): number

Returns

number

public getBubbleParent(): boolean

Returns

boolean

public getC(): number

Returns

number

public getD(): number

Returns

number

public getTx(): number

Returns

number

public getTy(): number

Returns

number

public invert(): _2DMatrix

Returns

_2DMatrix

public multiply(t2: _2DMatrix): _2DMatrix

Parameters

Returns

_2DMatrix

public removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public rotate(angle: number, toAngle?: number): _2DMatrix

Parameters

  • angle: number
  • toAngle?: number optional

Returns

_2DMatrix

public scale(sx: number, sy: number, toSx?: number, toSy?: number): _2DMatrix

Parameters

  • sx: number
  • sy: number
  • toSx?: number optional
  • toSy?: number optional

Returns

_2DMatrix

public setA(a: number)

Parameters

  • a: number

public setB(b: number)

Parameters

  • b: number

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setC(c: number)

Parameters

  • c: number

public setD(d: number)

Parameters

  • d: number

public setTx(tx: number)

Parameters

  • tx: number

public setTy(ty: number)

Parameters

  • ty: number

public translate(tx: number, ty: number): _2DMatrix

Parameters

  • tx: number
  • ty: number

Returns

_2DMatrix