MCPcopy 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

getSlumpPosFunction · 0.80
onHoverMethod · 0.80
onButtonMethod · 0.80
onDragMoveMethod · 0.80

Calls 1

hypotFunction · 0.85

Tested by

no test coverage detected