MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / sub

Method sub

packages/@stdlib/misc/src/vec2.ts:28–30  ·  view source on GitHub ↗
(vec: Vec2)

Source from the content-addressed store, hash-verified

26 return new Vec2(this.x + vec.x, this.y + vec.y);
27 }
28 sub(vec: Vec2): Vec2 {
29 return new Vec2(this.x - vec.x, this.y - vec.y);
30 }
31 mul(vec: Vec2): Vec2 {
32 return new Vec2(this.x * vec.x, this.y * vec.y);
33 }

Callers 15

distSqrMethod · 0.95
scrollIntoViewFunction · 0.95
constructorMethod · 0.80
_hmgetLocalMethod · 0.80
_hmgetRemoteMethod · 0.80
_hmgetDatabaseMethod · 0.80
deleteMethod · 0.80
hmsetMethod · 0.80
transactionMethod · 0.80
_handleDataUpdateMethod · 0.80
lerpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected