MCPcopy Create free account
hub / github.com/plotly/plotly.js / xy2r

Function xy2r

src/plots/polar/polar.js:864–866  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

862 }
863
864 function xy2r(x, y) {
865 return norm(x - cxx, y - cyy);
866 }
867
868 function xy2a(x, y) {
869 return Math.atan2(cyy - y, x - cxx);

Callers 1

zoomMoveFunction · 0.85

Calls 1

normFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…