(lambda, phi)
| 132300 | }; |
| 132301 | // Arithmetic mean of Cartesian vectors. |
| 132302 | function centroidPoint(lambda, phi) { |
| 132303 | lambda *= (0, _mathJs.radians), phi *= (0, _mathJs.radians); |
| 132304 | var cosPhi = (0, _mathJs.cos)(phi); |
| 132305 | centroidPointCartesian(cosPhi * (0, _mathJs.cos)(lambda), cosPhi * (0, _mathJs.sin)(lambda), (0, _mathJs.sin)(phi)); |
| 132306 | } |
| 132307 | function centroidPointCartesian(x, y, z) { |
| 132308 | ++W0; |
| 132309 | X0 += (x - X0) / W0; |
no test coverage detected