@@ -34,7 +34,7 @@
</p>
<p>
- Iterating through a Vector2 instance will yield its components (x, y) in the corresponding order.
+ 对Vector2实例进行遍历将按相应的顺序生成它的分量(x, y)。
<h2>代码示例</h2>
@@ -337,7 +337,7 @@
<h3>[method:this random]()</h3>
- Sets each component of this vector to a pseudo-random value between 0 and 1, excluding 1.
+ 将该向量的每个分量(x、y)设置为介于 0 和 1 之间的伪随机数,不包括 1。
<h2>源代码</h2>
@@ -35,6 +35,10 @@
但以上这些是它在three.js中的常用用途。
+ <p>
+ 对Vector3实例进行遍历将按相应的顺序生成它的分量(x, y, z)。
+ </p>
+
<code>
@@ -46,10 +50,6 @@
const d = a.distanceTo( b );
</code>
- <p>
- Iterating through a Vector3 instance will yield its components (x, y, z) in the corresponding order.
- </p>
-
<h2>构造函数</h2>
<h3>[name]( [param:Float x], [param:Float y], [param:Float z] )</h3>
@@ -46,7 +46,7 @@
- Iterating through a Vector4 instance will yield its components (x, y, z, w) in the corresponding order.
+ 对Vector4实例进行遍历将按相应的顺序生成它的分量(x, y, z, w)。