(spherical)
| 437 | } |
| 438 | |
| 439 | function cartesian(spherical) { |
| 440 | var lambda = spherical[0] * radians; |
| 441 | var phi = spherical[1] * radians; |
| 442 | var cosPhi = Math.cos(phi); |
| 443 | return [ |
| 444 | cosPhi * Math.cos(lambda), |
| 445 | cosPhi * Math.sin(lambda), |
| 446 | Math.sin(phi) |
| 447 | ]; |
| 448 | } |
| 449 | |
| 450 | function dot(a, b) { |
| 451 | var s = 0; |
no outgoing calls
no test coverage detected
searching dependent graphs…