MCPcopy Create free account
hub / github.com/breck7/scroll / angle

Function angle

external/.d3.js:10146–10148  ·  view source on GitHub ↗
(lambda0, lambda1)

Source from the content-addressed store, hash-verified

10144// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want
10145// the distance between ±180° to be 360°.
10146function angle(lambda0, lambda1) {
10147 return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;
10148}
10149
10150function rangeCompare(a, b) {
10151 return a[0] - b[0];

Callers 3

linePointFunction · 0.85
boundsFunction · 0.85
azimuthalInvertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected