Class Matrix3d

a 4x4 Matrix3d Object

Constructors

Properties

val: undefined | Float32Array

Accessors

Methods

  • return true if the two matrices are identical

    Parameters

    Returns boolean

    true if both are equals

  • reset the transformation matrix to the identity matrix (no transformation).
    the identity matrix and parameters position :

    Returns Matrix3d

    Reference to this object for method chaining

  • returns true if the matrix is an identity matrix.

    Returns boolean

  • generate an orthogonal projection matrix, with the result replacing the current matrix

    Parameters

    • left: number

      farthest left on the x-axis

    • right: number

      farthest right on the x-axis

    • bottom: number

      farthest down on the y-axis

    • top: number

      farthest up on the y-axis

    • near: number

      distance to the near clipping plane along the -Z axis

    • far: number

      distance to the far clipping plane along the -Z axis

    Returns Matrix3d

    Reference to this object for method chaining

  • rotate this matrix (counter-clockwise) by the specified angle (in radians).

    Parameters

    • angle: number

      Rotation angle in radians.

    • v: Vector3d

      the axis to rotate around

    Returns Matrix3d

    Reference to this object for method chaining

  • 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.

    • Optionalz: number = 0

      a number representing the depth vector

    Returns Matrix3d

    Reference to this object for method chaining

  • specifies a 2D scale operation using the [sx, 1] scaling vector

    Parameters

    • x: number

      x scaling vector

    Returns Matrix3d

    Reference to this object for method chaining

  • specifies a 2D scale operation using the [1,sy] scaling vector

    Parameters

    • y: number

      y scaling vector

    Returns Matrix3d

    Reference to this object for method chaining

  • set the matrix to the specified value

    Parameters

    • m00: number
    • m01: number
    • m02: number
    • m03: number
    • m10: number
    • m11: number
    • m12: number
    • m13: number
    • m20: number
    • m21: number
    • m22: number
    • m23: number
    • m30: number
    • m31: number
    • m32: number
    • m33: number

    Returns Matrix3d

    Reference to this object for method chaining

  • return an array representation of this Matrix

    Returns Float32Array

  • translate the matrix position using the given vector

    Parameters

    • Rest...args: any

    Returns Matrix3d

    Reference to this object for method chaining