in src/utils/vec3.ts [18:33]
constructor(v?: unknown, y?: unknown, z?: unknown) {
super(3);
if (v instanceof Vec3 || v instanceof Float32Array || (v instanceof Array && v.length === 3)) {
this[0] = v[0];
this[1] = v[1];
this[2] = v[2];
} else if (typeof v === "number" && typeof y === "number" && typeof z === "number") {
this[0] = v;
this[1] = y;
this[2] = z;
} else if (typeof v === "number") {
this[0] = v;
this[1] = v;
this[2] = v;
}
}