Hierarchy

  • Matrix

Index

Constructors

constructor

  • new Matrix(...arg: any[]): Matrix
  • Parameters

    • Rest ...arg: any[]

    Returns Matrix

Accessors

elements

  • get elements(): number[]
  • Returns number[]

Methods

clone

isIdentity

  • isIdentity(): boolean
  • Returns boolean

multiply

  • multiply(matrix2: Matrix): this
  • Parameters

    Returns this

multiplyAppend

  • multiplyAppend(mx: Matrix): this
  • Parameters

    Returns this

multiplyPrepend

  • multiplyPrepend(mx: Matrix): this
  • Parameters

    Returns this

rotate

  • rotate(angle: number): Matrix
  • Parameters

    • angle: number

    Returns Matrix

scale

  • scale(scaleX: number, scaleY: number): Matrix
  • Parameters

    • scaleX: number
    • scaleY: number

    Returns Matrix

toString

  • toString(): string
  • Returns string

transformPoints

  • transformPoints(points: Point[]): void
  • Parameters

    Returns void

translate

  • translate(x: number, y: number): Matrix
  • Parameters

    • x: number
    • y: number

    Returns Matrix

Generated using TypeDoc