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

Function isFullCircle

src/lib/angles.js:23–25  ·  view source on GitHub ↗

* is sector a full circle? * ... this comes up a lot in SVG path-drawing routines * * N.B. we consider all sectors that span more that 2pi 'full' circles * * @param {2-item array} aBnds : angular bounds in *radians* * @return {boolean}

(aBnds)

Source from the content-addressed store, hash-verified

21 * @return {boolean}
22 */
23function isFullCircle(aBnds) {
24 return Math.abs(aBnds[1] - aBnds[0]) > twoPI - 1e-14;
25}
26
27/**
28 * angular delta between angle 'a' and 'b'

Callers 2

isAngleInsideSectorFunction · 0.85
_pathFunction · 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…