Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DeepNotesApp/DeepNotes
/ length
Method
length
packages/@stdlib/misc/src/vec2.ts:58–60 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
56
}
57
58
length(): number {
59
return
Math.sqrt(this.dot(this));
60
}
61
normal(): Vec2 {
62
return
this.divScalar(this.length());
63
}
Callers
3
normal
Method · 0.95
cosineTo
Method · 0.95
_getCenterAndDistance
Method · 0.80
Calls
2
dot
Method · 0.95
sqrt
Method · 0.80
Tested by
no test coverage detected