MCPcopy Index your code
hub / github.com/plotly/plotly.js / rotate

Function rotate

src/components/drawing/index.js:1851–1855  ·  view source on GitHub ↗
(t, xy)

Source from the content-addressed store, hash-verified

1849var sin = Math.sin;
1850
1851function rotate(t, xy) {
1852 var x = xy[0];
1853 var y = xy[1];
1854 return [x * cos(t) - y * sin(t), x * sin(t) + y * cos(t)];
1855}
1856
1857var previousLon;
1858var previousLat;

Callers 1

getMarkerAngleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…