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

Method midpoint

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

Source from the content-addressed store, hash-verified

598 return new Vector4(-this.x, -this.y, -this.z, -this.w);
599 }
600 midpoint(other) {
601 return other.sub(this).div(2).add(this);
602 }
603 eq(other) {
604 return this.x === other.x && this.y === other.y && this.z === other.z && this.w === other.w;
605 }

Callers

nothing calls this directly

Calls 3

addMethod · 0.45
divMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected