MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / nextPoint

Function nextPoint

d3-3.2.8/d3.js:2230–2236  ·  view source on GitHub ↗
(λ, φ)

Source from the content-addressed store, hash-verified

2228 sinφ0 = Math.sin(φ);
2229 };
2230 function nextPoint(λ, φ) {
2231 λ *= d3_radians;
2232 φ = φ * d3_radians / 2 + π / 4;
2233 var dλ = λ - λ0, cosφ = Math.cos(φ), sinφ = Math.sin(φ), k = sinφ0 * sinφ, u = cosφ0 * cosφ + k * Math.cos(dλ), v = k * Math.sin(dλ);
2234 d3_geo_areaRingSum.add(Math.atan2(v, u));
2235 λ0 = λ, cosφ0 = cosφ, sinφ0 = sinφ;
2236 }
2237 d3_geo_area.lineEnd = function() {
2238 nextPoint(λ00, φ00);
2239 };

Callers 4

d3_geo_areaRingStartFunction · 0.85
d3_geo_centroidRingStartFunction · 0.85
d3_geo_pathAreaRingStartFunction · 0.85

Calls 3

d3_geo_centroidPointXYZFunction · 0.85
d3_acosFunction · 0.85
d3_geo_pathCentroidPointFunction · 0.85

Tested by

no test coverage detected