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

Function circleRadius

external/.d3.js:10451–10456  ·  view source on GitHub ↗
(cosRadius, point)

Source from the content-addressed store, hash-verified

10449
10450// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].
10451function circleRadius(cosRadius, point) {
10452 point = cartesian(point), point[0] -= cosRadius;
10453 cartesianNormalizeInPlace(point);
10454 var radius = acos$1(-point[1]);
10455 return ((-point[2] < 0 ? -radius : radius) + tau$1 - epsilon$1) % tau$1;
10456}
10457
10458function circle$1() {
10459 var center = constant$3([0, 0]),

Callers 1

circleStreamFunction · 0.85

Calls 3

cartesianFunction · 0.85
acos$1Function · 0.85

Tested by

no test coverage detected