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

Method midpoint

examples/extern/gmath.bundle.js:418–420  ·  view source on GitHub ↗
(other)

Source from the content-addressed store, hash-verified

416 return new Vector3(-this.x, -this.y, -this.z);
417 }
418 midpoint(other) {
419 return other.sub(this).div(2).add(this);
420 }
421 eq(other) {
422 return this.x === other.x && this.y === other.y && this.z === other.z;
423 }

Callers

nothing calls this directly

Calls 3

addMethod · 0.45
divMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected