|
@@ -248,7 +248,19 @@ export class Vector3 implements Vector {
|
|
|
*/
|
|
|
equals( v: Vector3 ): boolean;
|
|
|
|
|
|
- fromArray( xyz: number[], offset?: number ): Vector3;
|
|
|
+ /**
|
|
|
+ * Sets this vector's x, y and z value from the provided array.
|
|
|
+ * @param array the source array.
|
|
|
+ * @param offset (optional) offset into the array. Default is 0.
|
|
|
+ */
|
|
|
+ fromArray( array: number[], offset?: number ): this;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets this vector's x, y and z value from the provided array-lik.
|
|
|
+ * @param array the source array-like.
|
|
|
+ * @param offset (optional) offset into the array-like. Default is 0.
|
|
|
+ */
|
|
|
+ fromArray( array: ArrayLike<number>, offset?: number ): this;
|
|
|
|
|
|
/**
|
|
|
* Returns an array [x, y, z], or copies x, y and z into the provided array.
|
|
@@ -256,7 +268,7 @@ export class Vector3 implements Vector {
|
|
|
* @param offset (optional) optional offset into the array.
|
|
|
* @return The created or provided array.
|
|
|
*/
|
|
|
- toArray( xyz?: number[], offset?: number ): number[];
|
|
|
+ toArray( array?: number[], offset?: number ): number[];
|
|
|
|
|
|
/**
|
|
|
* Copies x, y and z into the provided array-like.
|
|
@@ -264,7 +276,7 @@ export class Vector3 implements Vector {
|
|
|
* @param offset (optional) optional offset into the array.
|
|
|
* @return The provided array-like.
|
|
|
*/
|
|
|
- toArray( xyz: ArrayLike<number>, offset?: number ): ArrayLike<number>;
|
|
|
+ toArray( array: ArrayLike<number>, offset?: number ): ArrayLike<number>;
|
|
|
|
|
|
fromBufferAttribute(
|
|
|
attribute: BufferAttribute,
|