跳到主要内容

KMatrix3 interface

KMatrix3表示一个三行三列矩阵。

The KMatrix3 class represents a 3x3 matrix.

Signature:

export interface KMatrix3 

Methods

Method

Description

clone()

复制一个当前矩阵。

Return the cloned matrix of this.

inverse(throwOnDegenerate)

将当前矩阵进行求逆。 如果throwOnDegenerate未设置且矩阵不可逆,则当前矩阵变成三位三列单位矩阵,并且抛出异常。

Inverse this matrix. If throwOnDegenerate is not set and the matrix is not invertible, set this to the 3x3 identity matrix and an exception will be threw.

inversed(throwOnDegenerate)

将当前矩阵进行求逆。 如果throwOnDegenerate未设置且矩阵不可逆,则返回三位三列单位矩阵,并且抛出异常。

Inverse this matrix. If throwOnDegenerate is not set and the matrix is not invertible, set this to the 3x3 identity matrix and an exception will be threw.

isEqual(other)

检查两个矩阵在特定容差下是否相等。

Check whether two matrices are equal with specified tolerances.

multiplied(matrix)

对当前矩阵右乘一矩阵并得到新矩阵。

Return a new matrix for post-multiplying this matrix by the input matrix.

multiply(matrix)

对当前矩阵右乘一矩阵。

Post-multiplies this matrix by the input matrix.