Skip to main content

KMatrix3

kds-plugin-document / Exports / KMatrix3

Interface: KMatrix3

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

The KMatrix3 class represents a 3x3 matrix.

Table of contents

Methods

Methods

clone

clone(): KMatrix3

复制一个当前矩阵。

Return the cloned matrix of this.

Returns

KMatrix3

复制的矩阵。

The cloned matrix.

Defined in

api.d.ts:9262


inverse

inverse(throwOnDegenerate?): void

将当前矩阵进行求逆。 如果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.

Parameters

NameTypeDescription
throwOnDegenerate?boolean默认值是true。 The default value is true.

Returns

void

Defined in

api.d.ts:9212


inversed

inversed(throwOnDegenerate?): KMatrix3

将当前矩阵进行求逆。 如果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.

Parameters

NameTypeDescription
throwOnDegenerate?boolean默认值是true。 The default value is true.

Returns

KMatrix3

逆矩阵。

a new inversed matrix

Defined in

api.d.ts:9228


isEqual

isEqual(other): boolean

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

Check whether two matrices are equal with specified tolerances.

Parameters

NameTypeDescription
otherKMatrix3被比较的矩阵。 The matrix to compare this matrix with.

Returns

boolean

如果相等则返回true。

Return true if equal, otherwise return false.

Defined in

api.d.ts:9276


multiplied

multiplied(matrix): KMatrix3

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

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

Parameters

NameTypeDescription
matrixKMatrix3传入的用于右乘矩阵。 the input matrix.

Returns

KMatrix3

一个新的矩阵。

a new multiplied matrix.

Defined in

api.d.ts:9252


multiply

multiply(matrix): void

对当前矩阵右乘一矩阵。

Post-multiplies this matrix by the input matrix.

Parameters

NameTypeDescription
matrixKMatrix3传入的用于右乘矩阵。 the input matrix.

Returns

void

Defined in

api.d.ts:9238