Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuperMap/iClient-JavaScript
/ vMag
Function
vMag
libs/echarts/echarts.simple.js:15185–15187 ·
view source on GitHub ↗
(v)
Source
from the content-addressed store, hash-verified
15183
var
PI = Math.PI;
15184
15185
var
vMag =
function
(v) {
15186
return
Math.sqrt(v[0] * v[0] + v[1] * v[1]);
15187
};
15188
var
vRatio =
function
(u, v) {
15189
return
(u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));
15190
};
Callers
1
vRatio
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected