Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Matrix

Hierarchy

  • Matrix

Index

Constructors

constructor

  • new Matrix(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number): Matrix
  • Parameters

    • Optional a: number
    • Optional b: number
    • Optional c: number
    • Optional d: number
    • Optional tx: number
    • Optional ty: number

    Returns Matrix

Properties

a

a: number

b

b: number

c

c: number

d

d: number

tx

tx: number

ty

ty: number

Static IDENTITY

IDENTITY: Matrix

Static TEMP_MATRIX

TEMP_MATRIX: Matrix

Methods

append

  • Parameters

    Returns Matrix

apply

  • Parameters

    Returns Point

applyInverse

  • Parameters

    Returns Point

clone

  • Returns Matrix

copy

  • Parameters

    Returns Matrix

decompose

fromArray

  • fromArray(array: number[]): void
  • Parameters

    • array: number[]

    Returns void

identity

  • Returns Matrix

invert

  • Returns Matrix

prepend

  • Parameters

    Returns Matrix

rotate

  • rotate(angle: number): Matrix
  • Parameters

    • angle: number

    Returns Matrix

scale

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

    • x: number
    • y: number

    Returns Matrix

set

  • set(a: number, b: number, c: number, d: number, tx: number, ty: number): Matrix
  • Parameters

    • a: number
    • b: number
    • c: number
    • d: number
    • tx: number
    • ty: number

    Returns Matrix

setTransform

  • setTransform(x: number, y: number, pivotX: number, pivotY: number, scaleX: number, scaleY: number, rotation: number, skewX: number, skewY: number): Matrix
  • Parameters

    • x: number
    • y: number
    • pivotX: number
    • pivotY: number
    • scaleX: number
    • scaleY: number
    • rotation: number
    • skewX: number
    • skewY: number

    Returns Matrix

toArray

  • toArray(transpose?: boolean, out?: number[]): number[]
  • Parameters

    • Optional transpose: boolean
    • Optional out: number[]

    Returns number[]

translate

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

    • x: number
    • y: number

    Returns Matrix

Generated using TypeDoc