Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DeepNotesApp/DeepNotes
/ sqr
Method
sqr
packages/@stdlib/misc/src/vec2.ts:91–93 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
89
return
new
Vec2(Math.pow(this.x, power), Math.pow(this.y, power));
90
}
91
sqr(): number {
92
return
this.dot(this);
93
}
94
sqrt(): Vec2 {
95
return
new
Vec2(Math.sqrt(this.x), Math.sqrt(this.y));
96
}
Callers
1
distSqr
Method · 0.80
Calls
1
dot
Method · 0.95
Tested by
no test coverage detected