MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / minus

Method minus

code/draw_layout.js:10–12  ·  view source on GitHub ↗
(other)

Source from the content-addressed store, hash-verified

8 return new Vec(this.x + other.x, this.y + other.y);
9 }
10 minus(other) {
11 return new Vec(this.x - other.x, this.y - other.y);
12 }
13 times(factor) {
14 return new Vec(this.x * factor, this.y * factor);
15 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected