Class Matrix2d

a Matrix2d Object.
the identity matrix and parameters position :

Constructors

Properties

val: Float32Array

The matrix values

Accessors

Methods

  • 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

  • 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

  • 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