The Matrix3x3 class is used to create a 3x3 matrix.

Matrix3x3 类用于创建 3x3 矩阵。

实现

  • IClone

构造函数

属性

elements: Float32Array

Matrix element array

矩阵元素数组

DEFAULT: Readonly<Matrix3x3> = ...

Default value

默认值

TEMP: Matrix3x3 = ...

Temporary variable

临时变量

方法

  • 参数

    • destObject: Float32Array

      The target array to clone to.

    返回 void

    Clone the matrix by array.

    通过数组克隆矩阵。

  • 返回 number

    The determinant of the matrix.

    Calculate the determinant of the 3x3 matrix.

    计算 3x3 矩阵的行列式。

  • 参数

    • rad: number

      The rotation angle in radians.

    • out: Matrix3x3

      The output matrix.

    返回 void

    Rotate the 3x3 matrix by a specified angle.

    根据指定角度旋转 3x3 矩阵。

  • 参数

    返回 void

    Convert a 4x4 matrix to a 3x3 matrix (upper-left principle, ignoring the fourth row and column).

    从 4x4 矩阵转换为一个 3x3 的矩阵(原则为 upper-left,忽略第四行四列)。

  • 参数

    • rad: number

      The rotation value.

    • out: Matrix3x3

      The output matrix.

    返回 void

    Generate a 3x3 matrix based on the specified rotation.

    根据指定旋转生成 3x3 矩阵。

  • 参数

    返回 void

    Generate a 3x3 matrix based on the specified translation.

    根据指定平移生成 3x3 矩阵。

  • 参数

    返回 void

    Calculate the 3x3 view matrix with forward direction looking at target. Forward is defined as the z-axis here.

    计算前向看向目标的3x3观察矩阵。这里规定前向为z轴。