Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alandefreitas/matplotplusplus
/ vector_magnitude
Function
vector_magnitude
source/matplot/util/common.cpp:425–427 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
423
}
424
425
double vector_magnitude(double x, double y) {
426
return sqrt(pow(x, 2) + pow(y, 2));
427
}
428
429
double vector_radians(std::complex<double> v) {
430
return vector_radians(v.real(), v.imag());
Callers
1
compass
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected