Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
onPointerMove
Function · 0.80
Calls
2
distSqr
Method · 0.95
sqrt
Method · 0.80
Tested by
no test coverage detected