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

Function angleDelta

src/lib/angles.js:35–37  ·  view source on GitHub ↗

* angular delta between angle 'a' and 'b' * solution taken from: https://stackoverflow.com/a/2007279 * * @param {number} a : first angle in *radians* * @param {number} b : second angle in *radians* * @return {number} angular delta in *radians*

(a, b)

Source from the content-addressed store, hash-verified

33 * @return {number} angular delta in *radians*
34 */
35function angleDelta(a, b) {
36 return modHalf(b - a, twoPI);
37}
38
39/**
40 * angular distance between angle 'a' and 'b'

Callers 2

angleDistFunction · 0.85
minFnFunction · 0.85

Calls 1

modHalfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…