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

Method constructor

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

Source from the content-addressed store, hash-verified

672 return new Vector2(1, 0);
673 }
674 constructor(x, y){
675 if (x !== undefined) {
676 this.x = x;
677 if (y !== undefined) {
678 this.y = y;
679 } else {
680 this.y = x;
681 }
682 }
683 }
684 clone() {
685 return new Vector2(this.x, this.y);
686 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected