Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Matrix4x4

Index

Constructors

constructor

Properties

Private ww

ww: number

ww component of the matrix.

Private wx

wx: number

wx component of the matrix.

Private wy

wy: number

wy component of the matrix.

Private wz

wz: number

wz component of the matrix.

Private xw

xw: number

xw component of the matrix.

Private xx

xx: number

xx component of the matrix.

Private xy

xy: number

xy component of the matrix.

Private xz

xz: number

xz component of the matrix.

Private yw

yw: number

yw component of the matrix.

Private yx

yx: number

yx component of the matrix.

Private yy

yy: number

yy component of the matrix.

Private yz

yz: number

yz component of the matrix.

Private zw

zw: number

zw component of the matrix.

Private zx

zx: number

zx component of the matrix.

Private zy

zy: number

zy component of the matrix.

Private zz

zz: number

zz component of the matrix.

Methods

apply3

apply4

clear

  • clear(): void

clone

multiply

setFromObject

setIdentity

setRotation

setScaling

  • setScaling(x: number, y: number, z: number): Matrix4x4

setTranslation

  • setTranslation(x: number, y: number, z: number): Matrix4x4
  • 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

toJSON

  • toJSON(): string

Static makeRotationMatrix

Static makeScalingMatrix

  • makeScalingMatrix(scaleX: number, scaleY: number, scaleZ: number): 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

Static makeTransformationMatrix

  • makeTransformationMatrix(rotateX: number, rotateY: number, rotateZ: number, scaleX: number, scaleY: number, scaleZ: number, translateX: number, translateY: number, translateZ: number): 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

Static makeTranslationMatrix

  • makeTranslationMatrix(translateX: number, translateY: number, translateZ: number): 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Static property
  • Static method

Generated using TypeDoc