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

Method midpoint

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

Source from the content-addressed store, hash-verified

743 return new Vector2(-this.x, -this.y);
744 }
745 midpoint(other) {
746 return other.sub(this).div(2).add(this);
747 }
748 eq(other) {
749 return this.x === other.x && this.y === other.y;
750 }

Callers

nothing calls this directly

Calls 3

addMethod · 0.45
divMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected