diff --git a/.all-contributorsrc b/.all-contributorsrc
index fb5e10535..df95e1027 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -733,6 +733,15 @@
"contributions": [
"code"
]
+ },
+ {
+ "login": "magnostherobot",
+ "name": "Tom Harley",
+ "avatar_url": "https://avatars.githubusercontent.com/u/24718981?v=4",
+ "profile": "https://github.com/magnostherobot",
+ "contributions": [
+ "code"
+ ]
}
],
"skipCi": true,
diff --git a/README.md b/README.md
index 86f92be38..2a9dff9b3 100644
--- a/README.md
+++ b/README.md
@@ -140,6 +140,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
Mikael Pettersson 💻 |
+ Tom Harley 💻 |
diff --git a/types/three/src/math/Vector2.d.ts b/types/three/src/math/Vector2.d.ts
index 9cac0dd2c..f138b474e 100644
--- a/types/three/src/math/Vector2.d.ts
+++ b/types/three/src/math/Vector2.d.ts
@@ -448,4 +448,9 @@ export class Vector2 implements Vector {
* Sets this vector's x and y from Math.random
*/
random(): this;
+
+ /**
+ * Iterating through a Vector2 instance will yield its components (x, y) in the corresponding order.
+ */
+ [Symbol.iterator](): Iterator;
}
diff --git a/types/three/src/math/Vector3.d.ts b/types/three/src/math/Vector3.d.ts
index a31af23d0..f95e12016 100644
--- a/types/three/src/math/Vector3.d.ts
+++ b/types/three/src/math/Vector3.d.ts
@@ -301,4 +301,9 @@ export class Vector3 implements Vector {
random(): this;
randomDirection(): this;
+
+ /**
+ * Iterating through a Vector3 instance will yield its components (x, y, z) in the corresponding order.
+ */
+ [Symbol.iterator](): Iterator;
}
diff --git a/types/three/src/math/Vector4.d.ts b/types/three/src/math/Vector4.d.ts
index d1bf582a8..164986d2c 100644
--- a/types/three/src/math/Vector4.d.ts
+++ b/types/three/src/math/Vector4.d.ts
@@ -220,4 +220,9 @@ export class Vector4 implements Vector {
* Sets this vector's x, y, z and w from Math.random
*/
random(): this;
+
+ /**
+ * Iterating through a Vector4 instance will yield its components (x, y, z, w) in the corresponding order.
+ */
+ [Symbol.iterator](): Iterator;
}