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

Method mag2

examples/extern/gmath.bundle.js:523–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

521 return Math.hypot(this.x, this.y, this.z, this.w);
522 }
523 mag2() {
524 return this.x ** 2 + this.y ** 2 + this.z ** 2 + this.w ** 2;
525 }
526 normal() {
527 return this.div(this.mag());
528 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected