Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VCVRack/Rack
/ normalize
Method
normalize
include/math.hpp:236–238 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
234
return std::hypot(x, y);
235
}
236
Vec normalize() const {
237
return div(norm());
238
}
239
float square() const {
240
return x * x + y * y;
241
}
Callers
1
drawLayer
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected