MCPcopy Create free account
hub / github.com/graphif/project-graph / add

Method add

packages/data-structures/src/Vector.ts:22–24  ·  view source on GitHub ↗
(vector: Vector)

Source from the content-addressed store, hash-verified

20 }
21
22 add(vector: Vector): Vector {
23 return new Vector(this.x + vector.x, this.y + vector.y);
24 }
25
26 subtract(vector: Vector): Vector {
27 return new Vector(this.x - vector.x, this.y - vector.y);

Callers 15

__add__Method · 0.95
constructorMethod · 0.95
renderNormalStateMethod · 0.95
computeFunctionMethod · 0.45
getPointByTMethod · 0.45
bezierMethod · 0.45
centerMethod · 0.45
getCenterMethod · 0.45
translateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected