MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / centroidLinePointFirst

Function centroidLinePointFirst

client_dist/vendor.js:7314–7322  ·  view source on GitHub ↗
(lambda, phi)

Source from the content-addressed store, hash-verified

7312}
7313
7314function centroidLinePointFirst(lambda, phi) {
7315 lambda *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"];
7316 var cosPhi = Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi);
7317 x0 = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda);
7318 y0 = cosPhi * Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda);
7319 z0 = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi);
7320 centroidStream.point = centroidLinePoint;
7321 centroidPointCartesian(x0, y0, z0);
7322}
7323
7324function centroidLinePoint(lambda, phi) {
7325 lambda *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math__WEBPACK_IMPORTED_MODULE_0__["radians"];

Callers

nothing calls this directly

Calls 1

centroidPointCartesianFunction · 0.85

Tested by

no test coverage detected