Options
All
  • Public
  • Public/Protected
  • All
Menu

Stores a 4x4 matrix in a column major (j * 4 + i indexing) format.

Index

Variables

Identity matrix

rotX180: ReadonlyMat4

Rotation matrix for 180deg around x-axis

rotX90: ReadonlyMat4

Rotation matrix for 90deg around x-axis

rotXY90: ReadonlyMat4

Rotation matrix for 90deg around first x-axis and then y-axis

rotY180: ReadonlyMat4

Rotation matrix for 180deg around y-axis

rotY270: ReadonlyMat4

Rotation matrix for 270deg around y-axis

rotY90: ReadonlyMat4

Rotation matrix for 90deg around y-axis

rotY90Z180: ReadonlyMat4

Rotation matrix for 90deg around first y-axis and then 180deg around z-axis

rotZ180: ReadonlyMat4

Rotation matrix for 180deg around z-axis

rotZ90: ReadonlyMat4

Rotation matrix for 90deg around z-axis

rotZ90X180: ReadonlyMat4

Rotation matrix for 90deg around first z-axis and then 180deg around x-axis

rotZY90: ReadonlyMat4

Rotation matrix for 90deg around first z-axis and then y-axis

rotZYZ90: ReadonlyMat4

Rotation matrix for 90deg around first z-axis and then y-axis and then z-axis

Functions

  • Parameters

    Returns boolean

  • Parameters

    Returns number

  • Perm is 0-indexed permutation

    Parameters

    Returns <internal>.Mat4

  • Parameters

    Returns <internal>.Mat4

  • Parameters

    Returns number

  • Returns a quaternion representing the rotational component of a transformation matrix.

    Parameters

    Returns <internal>.Quat

  • Returns the scaling factor component of a transformation matrix.

    Parameters

    Returns <internal>.Vec3

  • Returns the translation vector component of a transformation matrix.

    Parameters

    Returns <internal>.Vec3

  • Parameters

    Returns number

  • Parameters

    Returns boolean

  • Returns <internal>.Mat4

  • Parameters

    Returns boolean

  • Check if the matrix has the form [ Rotation Translation ] [ 0 1 ]

    Allows for improper rotations

    Parameters

    Returns boolean

  • isTranslationAndUniformScaling(a: <internal>.Mat4, eps?: number): boolean
  • Check if the matrix has only translation and uniform scaling [ S 0 0 X ] [ 0 S 0 Y ] [ 0 0 S Z ] [ 0 0 0 1 ]

    Parameters

    Returns boolean

  • Parameters

    Returns string

  • Parameters

    • rows: number[][]

    Returns <internal>.Mat4

  • Generates a orthogonal projection matrix with the given bounds

    Parameters

    • out: <internal>.Mat4
    • left: number
    • right: number
    • top: number
    • bottom: number
    • near: number
    • far: number

    Returns <internal>.Mat4

  • Generates a perspective projection (frustum) matrix with the given bounds

    Parameters

    • out: <internal>.Mat4
    • left: number
    • right: number
    • top: number
    • bottom: number
    • near: number
    • far: number

    Returns <internal>.Mat4

  • Sets the specified quaternion with values corresponding to the given axes. Each axis is a vec3 and is expected to be unit length and perpendicular to all other specified axes.

    Parameters

    Returns <internal>.Mat4

  • setValue(a: <internal>.Mat4, i: number, j: number, value: number): void
  • Parameters

    Returns void

  • Returns <internal>.Mat4

Generated using TypeDoc