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

Function cartesian

docs/app/js/sanddance-app.js:132244–132251  ·  view source on GitHub ↗
(spherical1)

Source from the content-addressed store, hash-verified

132242 ];
132243}
132244function cartesian(spherical1) {
132245 var lambda = spherical1[0], phi = spherical1[1], cosPhi = (0, _mathJs.cos)(phi);
132246 return [
132247 cosPhi * (0, _mathJs.cos)(lambda),
132248 cosPhi * (0, _mathJs.sin)(lambda),
132249 (0, _mathJs.sin)(phi)
132250 ];
132251}
132252function cartesianDot(a, b) {
132253 return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
132254}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected