MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / constructor

Method constructor

examples/extern/gmath.bundle.js:327–338  ·  view source on GitHub ↗
(x, y, z)

Source from the content-addressed store, hash-verified

325 return vector.trunc().mul(1 / vector.w);
326 }
327 constructor(x, y, z){
328 if (x !== undefined) {
329 this.x = x;
330 if (y !== undefined && z !== undefined) {
331 this.y = y;
332 this.z = z;
333 } else {
334 this.y = x;
335 this.z = x;
336 }
337 }
338 }
339 clone() {
340 return new Vector3(this.x, this.y, this.z);
341 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected