(lat, lng, radius)
| 1786 | } |
| 1787 | |
| 1788 | function xyzFromLatLng(lat, lng, radius) { |
| 1789 | var phi = (90 - lat) * Math.PI / 180; |
| 1790 | var theta = (360 - lng) * Math.PI / 180; |
| 1791 | |
| 1792 | return { |
| 1793 | x: radius * Math.sin(phi) * Math.cos(theta), |
| 1794 | y: radius * Math.cos(phi), |
| 1795 | z: radius * Math.sin(phi) * Math.sin(theta) |
| 1796 | }; |
| 1797 | } |
| 1798 | |
| 1799 | function flightPathLines() { |
| 1800 |
no test coverage detected