|
@@ -112,7 +112,7 @@ export class Vector3 implements Vector {
|
|
|
|
|
|
applyQuaternion(q: Quaternion): this;
|
|
applyQuaternion(q: Quaternion): this;
|
|
|
|
|
|
- project(camrea: Camera): this;
|
|
|
|
|
|
+ project(camera: Camera): this;
|
|
|
|
|
|
unproject(camera: Camera): this;
|
|
unproject(camera: Camera): this;
|
|
|
|
|
|
@@ -246,7 +246,23 @@ export class Vector3 implements Vector {
|
|
equals(v: Vector3): boolean;
|
|
equals(v: Vector3): boolean;
|
|
|
|
|
|
fromArray(xyz: number[], offset?: number): Vector3;
|
|
fromArray(xyz: number[], offset?: number): Vector3;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Returns an array [x, y, z], or copies x, y and z into the provided array.
|
|
|
|
+ * @param array (optional) array to store the vector to. If this is not provided, a new array will be created.
|
|
|
|
+ * @param offset (optional) optional offset into the array.
|
|
|
|
+ * @return The created or provided array.
|
|
|
|
+ */
|
|
toArray(xyz?: number[], offset?: number): number[];
|
|
toArray(xyz?: number[], offset?: number): number[];
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Copies x, y and z into the provided array-like.
|
|
|
|
+ * @param array array-like to store the vector to.
|
|
|
|
+ * @param offset (optional) optional offset into the array.
|
|
|
|
+ * @return The provided array-like.
|
|
|
|
+ */
|
|
|
|
+ toArray(xyz: ArrayLike<number>, offset?: number): ArrayLike<number>;
|
|
|
|
+
|
|
fromBufferAttribute(
|
|
fromBufferAttribute(
|
|
attribute: BufferAttribute,
|
|
attribute: BufferAttribute,
|
|
index: number,
|
|
index: number,
|