(spherical)
| 9991 | } |
| 9992 | |
| 9993 | function cartesian(spherical) { |
| 9994 | var lambda = spherical[0], phi = spherical[1], cosPhi = cos$1(phi); |
| 9995 | return [cosPhi * cos$1(lambda), cosPhi * sin$1(lambda), sin$1(phi)]; |
| 9996 | } |
| 9997 | |
| 9998 | function cartesianDot(a, b) { |
| 9999 | return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; |
no outgoing calls
no test coverage detected