MCPcopy Index your code
hub / github.com/marijnh/Eloquent-JavaScript / times

Method times

code/draw_layout.js:13–15  ·  view source on GitHub ↗
(factor)

Source from the content-addressed store, hash-verified

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 }
16 get length() {
17 return Math.sqrt(this.x * this.x + this.y * this.y);
18 }

Callers 3

forceDirected_simpleFunction · 0.80
forceDirected_noRepeatFunction · 0.80
forceDirected_skipFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected