MCPcopy Create free account
hub / github.com/microsoft/SandDance / centroidLinePointFirst

Function centroidLinePointFirst

docs/tests/v2/es6/js/sanddance.js:113103–113111  ·  view source on GitHub ↗
(lambda, phi)

Source from the content-addressed store, hash-verified

113101}
113102
113103function centroidLinePointFirst(lambda, phi) {
113104 lambda *= _math.radians, phi *= _math.radians;
113105 var cosPhi = (0, _math.cos)(phi);
113106 x0 = cosPhi * (0, _math.cos)(lambda);
113107 y0 = cosPhi * (0, _math.sin)(lambda);
113108 z0 = (0, _math.sin)(phi);
113109 centroidStream.point = centroidLinePoint;
113110 centroidPointCartesian(x0, y0, z0);
113111}
113112
113113function centroidLinePoint(lambda, phi) {
113114 lambda *= _math.radians, phi *= _math.radians;

Callers

nothing calls this directly

Calls 1

centroidPointCartesianFunction · 0.70

Tested by

no test coverage detected