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

Method dist

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

Source from the content-addressed store, hash-verified

65 return this.sub(vec).sqr();
66 }
67 dist(vec: Vec2): number {
68 return Math.sqrt(this.distSqr(vec));
69 }
70
71 angle(): number {
72 return Math.atan2(this.y, this.x);

Callers 1

onPointerMoveFunction · 0.80

Calls 2

distSqrMethod · 0.95
sqrtMethod · 0.80

Tested by

no test coverage detected