Class Matrix2d

a Matrix2d Object.
the identity matrix and parameters position :

Constructors

constructor

Properties

val

val: Float32Array

The matrix values

Accessors

tx

ty

Methods

apply

applyInverse

clone

copy

equals

fromMat3d

identity

invert

isIdentity

multiply

rotate

scale

  • scale(x, y?): Matrix2d
  • scale the matrix

    Parameters

    • x: number

      a number representing the abscissa of the scaling vector.

    • Optionaly: number = x

      a number representing the ordinate of the scaling vector.

    Returns Matrix2d

    Reference to this object for method chaining

scaleV

scaleX

scaleY

setTransform

  • setTransform(...values): Matrix2d
  • Set the matrix to the specified value.

    Parameters

    • Rest...values: [number, number, number, number, number, number] | [number, number, number, number, number, number, number, number, number]

      The matrix components.

    Returns Matrix2d

    Reference to this object for method chaining

toArray

toString

transform

  • transform(a, b, c, d, e, f): Matrix2d
  • Multiplies the current transformation with the matrix described by the arguments of this method.

    Parameters

    • a: number

      a component

    • b: number

      b component

    • c: number

      c component

    • d: number

      d component

    • e: number

      e component

    • f: number

      f component

    Returns Matrix2d

    Reference to this object for method chaining

translate

transpose

Settings

Member Visibility

On This Page

AltStyle によって変換されたページ (->オリジナル) /