Constructors

Properties

ww: number

ww component of the matrix.

wx: number

wx component of the matrix.

wy: number

wy component of the matrix.

wz: number

wz component of the matrix.

xw: number

xw component of the matrix.

xx: number

xx component of the matrix.

xy: number

xy component of the matrix.

xz: number

xz component of the matrix.

yw: number

yw component of the matrix.

yx: number

yx component of the matrix.

yy: number

yy component of the matrix.

yz: number

yz component of the matrix.

zw: number

zw component of the matrix.

zx: number

zx component of the matrix.

zy: number

zy component of the matrix.

zz: number

zz component of the matrix.

Methods

  • Sets the translation elements of this matrix while leaving the rest of the matrix untouched.

    Parameters

    • x: number

      Translation amount in the x axis.

    • y: number

      Translation amount in the y axis.

    • z: number

      Translation amount in the z axis.

    Returns Matrix4x4

  • Create the scaling matrix from the given x-, y- and z- scaling factors (use 1.0 for no scaling).

    Parameters

    • scaleX: number

      The x scaling factor.

    • scaleY: number

      The y scaling factor.

    • scaleZ: number

      The z scaling factor.

    Returns Matrix4x4

    Matrix4x4

  • Create a full transform matrix from the rotation, scaling and translation params.

    Parameters

    • rotateX: number

      The rotation angle around the x axis.

    • rotateY: number

      The rotation angle around the y axis.

    • rotateZ: number

      The rotation angle around the z axis.

    • scaleX: number

      The x scaling factor.

    • scaleY: number

      The y scaling factor.

    • scaleZ: number

      The z scaling factor.

    • translateX: number

      The x translation amount.

    • translateY: number

      The y translation amount.

    • translateZ: number

      The z translation amount.

    Returns Matrix4x4

    Matrix4x4

  • Create the translation matrix from the given x-, y- and z- translation amounts (use 0.0 for no translation).

    Parameters

    • translateX: number

      The x translation amount.

    • translateY: number

      The y translation amount.

    • translateZ: number

      The z translation amount.

    Returns Matrix4x4

    Matrix4x4

Generated using TypeDoc