Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VCVRack/Rack
/ norm
Method
norm
include/math.hpp:233–235 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
231
return std::atan2(y, x);
232
}
233
float norm() const {
234
return std::hypot(x, y);
235
}
236
Vec normalize() const {
237
return div(norm());
238
}
Callers
4
getSlumpPos
Function · 0.80
onHover
Method · 0.80
onButton
Method · 0.80
onDragMove
Method · 0.80
Calls
1
hypot
Function · 0.85
Tested by
no test coverage detected