diff --git a/docs/api/en/math/Matrix3.html b/docs/api/en/math/Matrix3.html index d37791eaaa32ccf5eb8c3166c4d7bb747d8e6a53..22dcca3fa4f8c9e68a5801891b66ec595c74ab74 100644 --- a/docs/api/en/math/Matrix3.html +++ b/docs/api/en/math/Matrix3.html @@ -55,7 +55,7 @@ m.elements = [ 11, 21, 31,

Properties

-

[property:Float32Array elements]

+

[property:Array elements]

A [link:https://en.wikipedia.org/wiki/Row-_and_column-major_order column-major] list of matrix values. diff --git a/docs/api/en/math/Matrix4.html b/docs/api/en/math/Matrix4.html index e9b7ac7a63156d46039298014ec780a15d485da9..f6b3739c74ab3faa82dd0ea1c22e623f30ce39a5 100644 --- a/docs/api/en/math/Matrix4.html +++ b/docs/api/en/math/Matrix4.html @@ -90,7 +90,7 @@ m.elements = [ 11, 21, 31, 41,

Properties

-

[property:Float32Array elements]

+

[property:Array elements]

A [link:https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major] list of matrix values. diff --git a/docs/api/zh/math/Matrix3.html b/docs/api/zh/math/Matrix3.html index c4ca87638d3d04b2837c3a900a65a699f4ec560d..3935219ef822cf868405d486ee6383f04d6e3565 100644 --- a/docs/api/zh/math/Matrix3.html +++ b/docs/api/zh/math/Matrix3.html @@ -53,7 +53,7 @@ m.elements = [ 11, 21, 31,

属性(Properties)

-

[property:Float32Array elements]

+

[property:Array elements]

矩阵列优先[link:https://en.wikipedia.org/wiki/Row-_and_column-major_order column-major]列表。

@@ -61,7 +61,7 @@ m.elements = [ 11, 21, 31,

[property:Boolean isMatrix3]

用于判定此对象或者此类的派生对象是否是三维矩阵。默认值为 *true*。

- + 不应该改变该值,因为它在内部用于优化。

@@ -103,7 +103,7 @@ m.elements = [ 11, 21, 31,

[page:Matrix3 m] - 取逆的矩阵。
[page:Boolean throwOnDegenerate] - (optional) 如果设置为true,如果矩阵是退化的(如果不可逆的话),则会抛出一个错误。

- + 使用逆矩阵计算方法[link:https://en.wikipedia.org/wiki/Invertible_matrix#Analytic_solution analytic method], 将当前矩阵设置为给定矩阵的逆矩阵[link:https://en.wikipedia.org/wiki/Invertible_matrix inverse],如果[page:Boolean throwOnDegenerate] 参数没有设置且给定矩阵不可逆,那么将当前矩阵设置为3X3单位矩阵。 diff --git a/docs/api/zh/math/Matrix4.html b/docs/api/zh/math/Matrix4.html index df311392b2321928b0003307b20e21b0cee4f275..469579408e8aa75a87967ee58ce3a94eed4aee8d 100644 --- a/docs/api/zh/math/Matrix4.html +++ b/docs/api/zh/math/Matrix4.html @@ -83,7 +83,7 @@ m.elements = [ 11, 21, 31, 41,

属性(Properties)

-

[property:Float32Array elements]

+

[property:Array elements]

矩阵列优先[link:https://en.wikipedia.org/wiki/Row-_and_column-major_order column-major]列表。

@@ -91,7 +91,7 @@ m.elements = [ 11, 21, 31, 41,

[property:Boolean isMatrix4]

用于判定此对象或者此类的派生对象是否是三维矩阵。默认值为 *true*。

- + 不应该改变该值,因为它在内部用于优化。

@@ -168,7 +168,7 @@ zAxis = (c, g, k)

[page:Array array] - 用来存储设置元素数据的数组
[page:Integer offset] - (可选参数) 数组的偏移量,默认值为 0。

- + 使用基于列优先格式[link:https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major]的数组来设置该矩阵。

@@ -176,7 +176,7 @@ zAxis = (c, g, k)

[page:Matrix3 m] - 取逆的矩阵。
[page:Boolean throwOnDegenerate] - (optional) 如果设置为true,如果矩阵是退化的(如果不可逆的话),则会抛出一个错误。

- + 使用逆矩阵计算方法[link:https://en.wikipedia.org/wiki/Invertible_matrix#Analytic_solution analytic method], 将当前矩阵设置为给定矩阵的逆矩阵[link:https://en.wikipedia.org/wiki/Invertible_matrix inverse],如果[page:Boolean throwOnDegenerate] 参数没有设置且给定矩阵不可逆,那么将当前矩阵设置为3X3单位矩阵。 @@ -251,7 +251,7 @@ xAxis.z, yAxis.z, zAxis.z, 0,

[method:this makeRotationX]( [param:Float theta] )

[page:Float theta] — Rotation angle in radians.

- + 把该矩阵设置为绕x轴旋转弧度[page:Float theta] (θ)大小的矩阵。 结果如下: diff --git a/src/math/Matrix3.d.ts b/src/math/Matrix3.d.ts index 12bf2a555e793504356b8e964bc74fe326421d04..f45d9775ec8e34bd801c3ad1bcb5b4b25274a752 100644 --- a/src/math/Matrix3.d.ts +++ b/src/math/Matrix3.d.ts @@ -7,9 +7,9 @@ import { Vector3 } from './Vector3'; */ export interface Matrix { /** - * Float32Array with matrix values. + * Array with matrix values. */ - elements: Float32Array; + elements: number[]; /** * identity():T; @@ -54,9 +54,9 @@ export class Matrix3 implements Matrix { constructor(); /** - * Float32Array with matrix values. + * Array with matrix values. */ - elements: Float32Array; + elements: number[]; set( n11: number, diff --git a/src/math/Matrix4.d.ts b/src/math/Matrix4.d.ts index 9d466ea45e998e6ad7402791fa515a32e5a70fdd..698bcde2b74f75363120cba4b27c670c13cc84f9 100644 --- a/src/math/Matrix4.d.ts +++ b/src/math/Matrix4.d.ts @@ -25,9 +25,9 @@ export class Matrix4 implements Matrix { constructor(); /** - * Float32Array with matrix values. + * Array with matrix values. */ - elements: Float32Array; + elements: number[]; /** * Sets all fields of this matrix.