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

Function angleMod

src/plots/geo/zoom.js:411–413  ·  view source on GitHub ↗
(angle)

Source from the content-addressed store, hash-verified

409
410// reduce an angle in degrees to [-180,180]
411function angleMod(angle) {
412 return (angle % 360 + 540) % 360 - 180;
413}
414
415// rotate a cartesian vector
416// axis is 0 (x), 1 (y), or 2 (z)

Callers 1

angleDistanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…