@johnmorrisdotca/wakusei-planets 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/data/vsop.js CHANGED
@@ -7,13 +7,13 @@ export const VSOP_EARTH = [[[[1.7534704567, 0.0, 0.0], [.0334165645, 4.669257, 6
7
7
  /** Mars's series, on its own so that a page that needs one planet imports only it. */
8
8
  export const VSOP_MARS = [[[[6.2034771158, 0.0, 0.0], [.1865636809, 5.050371, 3340.612427], [.0110821682, 5.400998, 6681.224853], [.0009179841, 5.754787, 10021.83728], [.0002774499, 5.970495, 3.523118], [.0001061024, 2.939586, 2281.230497], [.000123159, .849561, 2810.921462], [8.92678e-05, 4.156978, .017254], [8.71569e-05, 6.110052, 13362.449707], [6.79756e-05, .364622, 398.149003], [7.77487e-05, 3.339688, 5621.842923], [3.57508e-05, 1.661865, 2544.31442], [4.16111e-05, .22815, 2942.463423], [3.07525e-05, .856966, 191.448266], [2.62812e-05, .648061, 3337.089308], [2.93755e-05, 6.078937, .06731], [2.38941e-05, 5.038964, 796.298007], [2.57984e-05, .029967, 3344.135545], [1.52814e-05, 1.149793, 6151.533888], [1.79881e-05, .656341, 529.690965], [1.26436e-05, 3.622751, 5092.151958], [1.28623e-05, 3.067961, 2146.165416], [1.5464e-05, 2.915797, 1751.539531], [1.0249e-05, 3.693341, 8962.45535], [8.9157e-06, .182938, 16703.062133], [8.5876e-06, 2.400938, 2914.014236], [8.3272e-06, 2.464186, 3340.595173], [8.3272e-06, 4.494958, 3340.62968], [7.129e-06, 3.663355, 1059.38193], [7.4872e-06, 3.822486, 155.420399], [7.2386e-06, .674973, 3738.76143], [6.3555e-06, 2.921822, 8432.764385], [6.5516e-06, .488641, 3127.313331], [5.5047e-06, 3.81001, .980321], [5.5275e-06, 4.474793, 1748.016413], [4.2597e-06, .553643, 6283.07585], [4.1513e-06, .496623, 213.299095], [4.7217e-06, 3.625471, 1194.44701], [3.0655e-06, .380528, 6684.747972], [3.1214e-06, .998539, 6677.701735], [3.0238e-06, 4.48618, 3532.060693]], [[3340.6124270051, 0.0, 0.0], [.0145755452, 3.604337, 3340.612427], [.0016841471, 3.923186, 6681.224853], [.0002062298, 4.261088, 10021.83728], [3.45239e-05, 4.732104, 3.523118], [2.58633e-05, 4.606701, 13362.449707]], [[.0005815258, 2.049617, 3340.612427], [.0001345958, 2.457387, 6681.224853]]], [[[.0319713499, 3.76832, 3340.612427], [.0029803323, 4.10617, 6681.224853], [.0028910474, 0.0, 0.0], [.0003136554, 4.446511, 10021.83728], [3.4841e-05, 4.788125, 13362.449707], [4.43e-06, 5.65233, 3337.089308], [4.434e-06, 5.026426, 3344.135545], [3.9911e-06, 5.130568, 16703.062133]], [[.0021731099, 6.044722, 3340.612427], [.0002097695, 3.141593, 0.0], [.0001283471, 1.608107, 6681.224853], [3.32098e-05, 2.62947, 10021.83728]], [[8.88845e-05, 1.061961, 3340.612427]]], [[[1.5303348827, 0.0, 0.0], [.1418495316, 3.479713, 3340.612427], [.0066077636, 3.817834, 6681.224853], [.0004617912, 4.155953, 10021.83728], [8.10973e-05, 5.559584, 2810.921462], [7.48532e-05, 1.772391, 5621.842923], [5.52319e-05, 1.364363, 2281.230497], [3.82516e-05, 4.494072, 13362.449707], [2.30654e-05, .090816, 2544.31442], [1.9994e-05, 5.360596, 3337.089308], [2.48439e-05, 4.925456, 2942.463423], [1.96019e-05, 4.742494, 3344.135545], [1.16712e-05, 2.112609, 5092.151958], [1.10282e-05, 5.009084, 398.149003], [8.9907e-06, 4.407911, 529.690965], [9.9225e-06, 5.83862, 6151.533888], [8.0735e-06, 2.102171, 1059.38193], [7.9791e-06, 3.448392, 796.298007], [7.4097e-06, 1.499063, 2146.165416], [6.9234e-06, 2.133789, 8962.45535], [6.3314e-06, .893533, 3340.595173], [7.2558e-06, 1.245168, 8432.764385], [6.3314e-06, 2.924304, 3340.62968], [5.7436e-06, .828962, 2914.014236], [5.2617e-06, 5.38293, 3738.76143], [6.2998e-06, 1.287375, 1751.539531], [4.7277e-06, 5.198505, 3127.313331], [3.481e-06, 4.832192, 16703.062133]], [[.0110743334, 2.032505, 3340.612427], [.0010317589, 2.370718, 6681.224853], [.000128772, 0.0, 0.0], [.0001081588, 2.708881, 10021.83728]], [[.0004424225, .479306, 3340.612427], [8.13804e-05, .869984, 6681.224853]]]];
9
9
  /** Jupiter's series, on its own so that a page that needs one planet imports only it. */
10
- export const VSOP_JUPITER = [[[[.5995469149, 0.0, 0.0], [.0969589872, 5.061918, 529.690965], [.0057361014, 1.444062, 7.113547], [.0030638921, 5.417347, 1059.38193], [.000971783, 4.142647, 632.783739], [.0007290308, 3.640429, 522.577418], [.0006426398, 3.411452, 103.092774], [.0003980606, 2.293767, 419.484644], [.0003885777, 1.272318, 316.39187], [.0002796463, 1.784546, 536.804512], [.0001358973, 5.77481, 1589.072895], [8.24635e-05, 3.582279, 206.185548], [8.7687e-05, 3.630003, 949.175609], [7.36804e-05, 5.081012, 735.876514], [6.26315e-05, .024976, 213.299095], [6.11406e-05, 4.5132, 1162.474704], [4.9054e-05, 1.320845, 110.206321], [5.30528e-05, 1.306712, 14.227094], [5.30544e-05, 4.186256, 1052.268383], [4.64725e-05, 4.699581, 3.932153], [3.04502e-05, 4.316764, 426.598191], [2.61e-05, 1.566674, 846.082835], [2.02819e-05, 1.063765, 3.181394], [1.76476e-05, 2.141487, 1066.495477], [1.72297e-05, 3.880363, 1265.567479], [1.92094e-05, .971682, 639.897286], [1.63322e-05, 3.582018, 515.463871], [1.432e-05, 4.296856, 625.670192], [9.7327e-06, 4.097645, 95.979227], [8.8446e-06, 2.437002, 412.371097], [7.3285e-06, 6.085351, 838.969288], [7.3109e-06, 3.805923, 1581.959348], [6.9197e-06, 6.133653, 2118.76386], [7.0917e-06, 1.292748, 742.990061], [6.1448e-06, 4.108506, 1478.866574], [4.9522e-06, 3.755641, 323.505417], [5.819e-06, 4.539696, 309.278323], [3.7566e-06, 4.703043, 1368.660253], [3.8988e-06, 4.897068, 1692.16567], [3.4102e-06, 5.714524, 533.623118], [3.3046e-06, 4.740498, .048184], [4.4085e-06, 2.958186, 454.909367], [4.1727e-06, 1.035544, 2.447681]], [[529.6909650881, 0.0, 0.0], [.0048950324, 4.220829, 529.690965], [.0022891722, 6.026469, 7.113547], [.0003009948, 4.545408, 1059.38193], [.0002072092, 5.459432, 522.577418], [.0001210365, .169948, 536.804512], [6.06799e-05, 4.424223, 103.092774], [5.43397e-05, 3.984807, 419.484644], [4.23774e-05, 5.890087, 14.227094], [2.21197e-05, 5.267667, 206.185548], [1.9835e-05, 4.886007, 1589.072895], [1.29577e-05, 5.551328, 3.181394]], [[.000472336, 4.321485, 7.113547], [.0003064944, 2.929778, 529.690965], [.000148376, 3.141593, 0.0]]], [[[.022686157, 3.558526, 529.690965], [.0010997163, 3.908093, 1059.38193], [.0011009036, 0.0, 0.0], [8.10143e-05, 3.605096, 522.577418], [6.044e-05, 4.258831, 1589.072895], [6.43778e-05, .306271, 536.804512], [1.10688e-05, 2.985344, 1162.474704], [9.4165e-06, 2.936191, 1052.268383], [8.9409e-06, 1.754474, 7.113547], [7.6728e-06, 2.154736, 632.783739], [9.4433e-06, 1.675223, 426.598191], [6.8422e-06, 3.678088, 213.299095], [6.2922e-06, .643433, 1066.495477], [8.3586e-06, 5.17882, 103.092774], [5.3167e-06, 2.703059, 110.206321], [5.5852e-06, .013548, 846.082835], [4.6445e-06, 1.173373, 949.175609], [4.3107e-06, 2.60825, 419.484644], [3.5143e-06, 4.61063, 2118.76386]], [[.0007820345, 1.523779, 529.690965], [7.7899e-05, 2.597341, 1059.38193], [2.7886e-05, 4.856227, 536.804512], [2.42973e-05, 5.459473, 522.577418], [1.98578e-05, 0.0, 0.0]], [[5.49832e-05, 3.015963, 529.690965]]], [[[5.2088742933, 0.0, 0.0], [.2520932712, 3.491086, 529.690965], [.0061059998, 3.841154, 1059.38193], [.0028202946, 2.574199, 632.783739], [.0018764735, 2.075904, 522.577418], [.0008679291, .710011, 419.484644], [.0007206297, .214657, 536.804512], [.0006551725, 5.979959, 316.39187], [.0002913454, 1.677594, 103.092774], [.0003013533, 2.16132, 949.175609], [.0002345327, 3.540235, 735.876514], [.0002228374, 4.193626, 1589.072895], [.000239473, .27458, 7.113547], [.0001303261, 2.96043, 1162.474704], [9.70336e-05, 1.906696, 206.185548], [.0001274902, 2.715503, 1052.268383], [9.16139e-05, 4.41353, 213.299095], [7.89451e-05, 2.479076, 426.598191], [7.05793e-05, 2.181848, 1265.567479], [6.1377e-05, 6.264182, 846.082835], [5.477e-05, 5.6573, 639.897286], [3.50249e-05, .565324, 1066.495477], [4.13682e-05, 2.722209, 625.670192], [4.16995e-05, 2.016038, 515.463871], [2.49997e-05, 4.551817, 838.969288], [2.61698e-05, 2.00994, 1581.959348], [1.91201e-05, .856211, 412.371097], [2.12768e-05, 6.127552, 742.990061], [1.61057e-05, 3.088715, 1368.660253], [1.47951e-05, 2.680213, 1478.866574], [1.23063e-05, 1.89052, 323.505417], [1.21689e-05, 1.801763, 110.206321], [9.6111e-06, 4.54877, 2118.76386], [8.8576e-06, 4.147839, 533.623118], [7.7658e-06, 3.677108, 728.762967], [9.9859e-06, 2.872054, 309.278323], [1.01473e-05, 1.386758, 454.909367], [7.2716e-06, 3.988273, 1155.361157], [6.5533e-06, 2.790726, 1685.052123], [8.2138e-06, 1.593515, 1898.351218], [6.2082e-06, 4.822752, 956.289156], [6.5407e-06, 3.381407, 1692.16567], [8.1199e-06, 5.940934, 909.818733], [5.6209e-06, .081149, 543.918059], [5.4222e-06, .283572, 525.758812], [4.5784e-06, .127205, 1375.7738], [6.1474e-06, 2.276337, 942.062062], [4.3582e-06, 2.602793, 95.979227], [4.9601e-06, 5.530202, 380.127768], [4.6997e-06, 2.818838, 1795.258444], [4.4506e-06, .146486, 14.227094], [3.3815e-06, 2.798871, 1045.154836], [3.1904e-06, 1.348186, 2214.743088], [3.093e-06, 5.368394, 1272.681026], [3.458e-06, 1.56405, 491.557929], [3.0336e-06, 1.154075, 5753.384885]], [[.0127180152, 2.649375, 529.690965], [.0006166182, 3.000765, 1059.38193], [.0005344371, 3.897174, 522.577418], [.0003118517, 4.88277, 536.804512], [.0004139027, 0.0, 0.0], [.0001184726, 2.413288, 419.484644], [9.16645e-05, 4.759786, 7.113547], [3.1756e-05, 2.792984, 103.092774], [3.20348e-05, 5.210841, 735.876514], [3.40358e-05, 3.346896, 1589.072895], [2.59993e-05, 3.634391, 206.185548], [2.41213e-05, 1.469483, 426.598191], [2.80607e-05, 3.74227, 515.463871], [2.67661e-05, 4.330517, 1052.268383], [2.10039e-05, 3.927728, 639.897286], [1.64616e-05, 5.309476, 1066.495477], [1.64109e-05, 4.416285, 625.670192]], [[.0007964496, 1.358659, 529.690965], [8.25164e-05, 5.777745, 522.577418], [7.02994e-05, 3.274774, 536.804512], [5.31403e-05, 1.83835, 1059.38193]]]];
10
+ export const VSOP_JUPITER = [[[[.5995469149, 0.0, 0.0], [.0969589872, 5.061918, 529.690965], [.0057361014, 1.444062, 7.113547], [.0030638921, 5.417347, 1059.38193], [.000971783, 4.142647, 632.783739], [.0007290308, 3.640429, 522.577418], [.0006426398, 3.411452, 103.092774], [.0003980606, 2.293767, 419.484644], [.0003885777, 1.272318, 316.39187], [.0002796463, 1.784546, 536.804512], [.0001358973, 5.77481, 1589.072895], [8.24635e-05, 3.582279, 206.185548], [8.7687e-05, 3.630003, 949.175609], [7.36804e-05, 5.081012, 735.876514], [6.26315e-05, .024976, 213.299095], [6.11406e-05, 4.5132, 1162.474704], [4.9054e-05, 1.320845, 110.206321], [5.30528e-05, 1.306712, 14.227094], [5.30544e-05, 4.186256, 1052.268383], [4.64725e-05, 4.699581, 3.932153], [3.04502e-05, 4.316764, 426.598191], [2.61e-05, 1.566674, 846.082835], [2.02819e-05, 1.063765, 3.181394], [1.76476e-05, 2.141487, 1066.495477], [1.72297e-05, 3.880363, 1265.567479], [1.92094e-05, .971682, 639.897286], [1.63322e-05, 3.582018, 515.463871], [1.432e-05, 4.296856, 625.670192], [9.7327e-06, 4.097645, 95.979227], [8.8446e-06, 2.437002, 412.371097], [7.3285e-06, 6.085351, 838.969288], [7.3109e-06, 3.805923, 1581.959348], [6.9197e-06, 6.133653, 2118.76386], [7.0917e-06, 1.292748, 742.990061], [6.1448e-06, 4.108506, 1478.866574], [4.9522e-06, 3.755641, 323.505417], [5.819e-06, 4.539696, 309.278323], [3.7566e-06, 4.703043, 1368.660253], [3.8988e-06, 4.897068, 1692.16567], [3.4102e-06, 5.714524, 533.623118], [3.3046e-06, 4.740498, .048184], [4.4085e-06, 2.958186, 454.909367], [4.1727e-06, 1.035544, 2.447681], [-4.6838e-06, 0.0, 0.0]], [[529.6909650881, 0.0, 0.0], [.0048950324, 4.220829, 529.690965], [.0022891722, 6.026469, 7.113547], [.0003009948, 4.545408, 1059.38193], [.0002072092, 5.459432, 522.577418], [.0001210365, .169948, 536.804512], [6.06799e-05, 4.424223, 103.092774], [5.43397e-05, 3.984807, 419.484644], [4.23774e-05, 5.890087, 14.227094], [2.21197e-05, 5.267667, 206.185548], [1.9835e-05, 4.886007, 1589.072895], [1.29577e-05, 5.551328, 3.181394], [-3.4381e-06, 0.0, 0.0]], [[.000472336, 4.321485, 7.113547], [.0003064944, 2.929778, 529.690965], [.000148376, 3.141593, 0.0]]], [[[.022686157, 3.558526, 529.690965], [.0010997163, 3.908093, 1059.38193], [.0011009036, 0.0, 0.0], [8.10143e-05, 3.605096, 522.577418], [6.044e-05, 4.258831, 1589.072895], [6.43778e-05, .306271, 536.804512], [1.10688e-05, 2.985344, 1162.474704], [9.4165e-06, 2.936191, 1052.268383], [8.9409e-06, 1.754474, 7.113547], [7.6728e-06, 2.154736, 632.783739], [9.4433e-06, 1.675223, 426.598191], [6.8422e-06, 3.678088, 213.299095], [6.2922e-06, .643433, 1066.495477], [8.3586e-06, 5.17882, 103.092774], [5.3167e-06, 2.703059, 110.206321], [5.5852e-06, .013548, 846.082835], [4.6445e-06, 1.173373, 949.175609], [4.3107e-06, 2.60825, 419.484644], [3.5143e-06, 4.61063, 2118.76386]], [[.0007820345, 1.523779, 529.690965], [7.7899e-05, 2.597341, 1059.38193], [2.7886e-05, 4.856227, 536.804512], [2.42973e-05, 5.459473, 522.577418], [1.98578e-05, 0.0, 0.0]], [[5.49832e-05, 3.015963, 529.690965]]], [[[5.2088742933, 0.0, 0.0], [.2520932712, 3.491086, 529.690965], [.0061059998, 3.841154, 1059.38193], [.0028202946, 2.574199, 632.783739], [.0018764735, 2.075904, 522.577418], [.0008679291, .710011, 419.484644], [.0007206297, .214657, 536.804512], [.0006551725, 5.979959, 316.39187], [.0002913454, 1.677594, 103.092774], [.0003013533, 2.16132, 949.175609], [.0002345327, 3.540235, 735.876514], [.0002228374, 4.193626, 1589.072895], [.000239473, .27458, 7.113547], [.0001303261, 2.96043, 1162.474704], [9.70336e-05, 1.906696, 206.185548], [.0001274902, 2.715503, 1052.268383], [9.16139e-05, 4.41353, 213.299095], [7.89451e-05, 2.479076, 426.598191], [7.05793e-05, 2.181848, 1265.567479], [6.1377e-05, 6.264182, 846.082835], [5.477e-05, 5.6573, 639.897286], [3.50249e-05, .565324, 1066.495477], [4.13682e-05, 2.722209, 625.670192], [4.16995e-05, 2.016038, 515.463871], [2.49997e-05, 4.551817, 838.969288], [2.61698e-05, 2.00994, 1581.959348], [1.91201e-05, .856211, 412.371097], [2.12768e-05, 6.127552, 742.990061], [1.61057e-05, 3.088715, 1368.660253], [1.47951e-05, 2.680213, 1478.866574], [1.23063e-05, 1.89052, 323.505417], [1.21689e-05, 1.801763, 110.206321], [9.6111e-06, 4.54877, 2118.76386], [8.8576e-06, 4.147839, 533.623118], [7.7658e-06, 3.677108, 728.762967], [9.9859e-06, 2.872054, 309.278323], [1.01473e-05, 1.386758, 454.909367], [7.2716e-06, 3.988273, 1155.361157], [6.5533e-06, 2.790726, 1685.052123], [8.2138e-06, 1.593515, 1898.351218], [6.2082e-06, 4.822752, 956.289156], [6.5407e-06, 3.381407, 1692.16567], [8.1199e-06, 5.940934, 909.818733], [5.6209e-06, .081149, 543.918059], [5.4222e-06, .283572, 525.758812], [4.5784e-06, .127205, 1375.7738], [6.1474e-06, 2.276337, 942.062062], [4.3582e-06, 2.602793, 95.979227], [4.9601e-06, 5.530202, 380.127768], [4.6997e-06, 2.818838, 1795.258444], [4.4506e-06, .146486, 14.227094], [3.3815e-06, 2.798871, 1045.154836], [3.1904e-06, 1.348186, 2214.743088], [3.093e-06, 5.368394, 1272.681026], [3.458e-06, 1.56405, 491.557929], [3.0336e-06, 1.154075, 5753.384885]], [[.0127180152, 2.649375, 529.690965], [.0006166182, 3.000765, 1059.38193], [.0005344371, 3.897174, 522.577418], [.0003118517, 4.88277, 536.804512], [.0004139027, 0.0, 0.0], [.0001184726, 2.413288, 419.484644], [9.16645e-05, 4.759786, 7.113547], [3.1756e-05, 2.792984, 103.092774], [3.20348e-05, 5.210841, 735.876514], [3.40358e-05, 3.346896, 1589.072895], [2.59993e-05, 3.634391, 206.185548], [2.41213e-05, 1.469483, 426.598191], [2.80607e-05, 3.74227, 515.463871], [2.67661e-05, 4.330517, 1052.268383], [2.10039e-05, 3.927728, 639.897286], [1.64616e-05, 5.309476, 1066.495477], [1.64109e-05, 4.416285, 625.670192]], [[.0007964496, 1.358659, 529.690965], [8.25164e-05, 5.777745, 522.577418], [7.02994e-05, 3.274774, 536.804512], [5.31403e-05, 1.83835, 1059.38193]]]];
11
11
  /** Saturn's series, on its own so that a page that needs one planet imports only it. */
12
12
  export const VSOP_SATURN = [[[[.8740135402, 0.0, 0.0], [.1110765976, 3.962051, 213.299095], [.0141415096, 4.585815, 7.113547], [.0039837939, .52112, 206.185548], [.0035076924, 3.303299, 426.598191], [.002068163, .246584, 103.092774], [.000792713, 3.840071, 220.412642], [.0002399035, 4.669769, 110.206321], [.0001657359, .437192, 419.484644], [.0001490699, 5.769032, 316.39187], [.0001582029, .938092, 632.783739], [.0001460956, 1.565185, 3.932153], [.000131603, 4.448913, 14.227094], [.0001505354, 2.716699, 639.897286], [.000130053, 5.98119, 11.0457], [.0001072507, 3.129395, 202.253395], [5.86321e-05, .236569, 529.690965], [5.22776e-05, 4.207834, 3.181394], [6.12632e-05, 1.763287, 277.034994], [5.01969e-05, 3.177877, 433.711738], [4.59255e-05, .619777, 199.072001], [4.00587e-05, 2.244797, 63.735898], [2.9538e-05, .982804, 95.979227], [3.87367e-05, 3.222832, 138.517497], [2.46119e-05, 2.031639, 735.876514], [3.26948e-05, .774926, 949.175609], [1.75815e-05, 3.265801, 522.577418], [1.64017e-05, 5.505045, 846.082835], [1.39133e-05, 4.023332, 323.505417], [1.58065e-05, 4.372653, 309.278323], [1.1235e-05, 2.837268, 415.552491], [1.01728e-05, 3.717001, 227.526189], [8.4864e-06, 3.191502, 209.366942], [1.08723e-05, 4.183433, 2.447681], [9.5676e-06, .507443, 1265.567479], [7.8921e-06, 5.007451, .963208], [6.87e-06, 1.747142, 1052.268383], [6.5448e-06, 1.598893, .048184], [7.4882e-06, 2.143968, 853.196382], [6.3398e-06, 2.298874, 412.371097], [7.436e-06, 5.252777, 224.344796], [8.5268e-06, 3.421413, 175.16606], [5.7984e-06, 3.092548, 74.781599], [6.2488e-06, .970481, 210.117702], [5.2987e-06, 4.44939, 117.319868], [5.4265e-06, 1.51825, 9.561228], [4.7428e-06, 5.475265, 742.990061], [4.4855e-06, 1.289914, 127.471797], [5.4636e-06, 2.126779, 350.33212], [4.7804e-06, 2.964867, 137.033024], [3.5499e-06, 3.012802, 838.969288], [4.5186e-06, 1.044373, 490.334089], [3.4742e-06, 1.539233, 340.770892], [3.4348e-06, .246038, .521265], [3.0903e-06, 3.49491, 216.480489], [3.2219e-06, .961365, 203.737868], [3.7232e-06, 2.278229, 217.231249], [3.2156e-06, 2.571852, 647.010833], [3.302e-06, .247217, 1581.959348]], [[213.2990952169, 0.0, 0.0], [.0129737086, 1.828349, 213.299095], [.0056434539, 2.884997, 7.113547], [.0009373437, 1.063118, 426.598191], [.0010767496, 2.277691, 206.185548], [.0004024445, 2.041081, 220.412642], [.0001994177, 1.279544, 103.092774], [.0001051168, 2.748803, 14.227094], [6.41611e-05, .382383, 639.897286], [4.84899e-05, 2.430376, 419.484644], [4.05689e-05, 2.921332, 110.206321], [3.76864e-05, 3.649653, 3.932153], [3.38469e-05, 2.416945, 3.181394], [3.23169e-05, 1.2615, 433.711738], [3.07141e-05, 2.327395, 199.072001], [1.95318e-05, 3.563781, 11.0457], [1.24947e-05, 2.628108, 95.979227]], [[.0011644133, 1.179881, 7.113547], [.0009184184, .073252, 213.299095], [.0003666173, 0.0, 0.0], [.000152745, 4.064932, 206.185548], [.0001098726, 5.444792, 426.598191], [.0001062983, .257643, 220.412642]]], [[[.0433067804, 3.602844, 213.299095], [.002403483, 2.852385, 426.598191], [.0008474594, 0.0, 0.0], [.0003086336, 3.484415, 220.412642], [.0003411606, .572973, 206.185548], [.0001473407, 2.118466, 639.897286], [9.91667e-05, 5.790032, 419.484644], [6.99356e-05, 4.736047, 7.113547], [4.80759e-05, 5.433053, 316.39187], [4.78839e-05, 4.965129, 110.206321], [3.43213e-05, 2.732557, 433.711738], [1.50613e-05, 6.013045, 103.092774], [1.0603e-05, 5.630993, 529.690965], [9.6907e-06, 5.20435, 632.783739], [9.4205e-06, 1.396467, 853.196382], [7.0764e-06, 3.803023, 323.505417], [5.5231e-06, 5.131491, 202.253395], [3.9967e-06, 3.358914, 227.526189], [3.1606e-06, 1.997167, 647.010833], [3.1938e-06, 3.625717, 209.366942], [3.1422e-06, .465102, 217.231249]], [[.0019892799, 4.93901, 213.299095], [.0003694792, 3.141593, 0.0], [.0001796699, .519794, 426.598191], [.0001091972, 1.794633, 220.412642], [.0001332026, 2.264815, 206.185548], [3.24343e-05, 1.21094, 419.484644], [2.90052e-05, 6.170335, 639.897286], [1.58471e-05, .934164, 433.711738], [1.58067e-05, 3.081717, 7.113547]], [[.0001388426, .08995, 213.299095]]], [[[9.5575813549, 0.0, 0.0], [.5292138286, 2.392262, 213.299095], [.0187367987, 5.235496, 206.185548], [.0146466393, 1.64763, 426.598191], [.0082189114, 5.9352, 316.39187], [.0054750692, 5.015326, 103.092774], [.0037168465, 2.271148, 220.412642], [.0036177876, 3.139043, 7.113547], [.0014061751, 5.704066, 632.783739], [.0010897485, 3.293134, 110.206321], [.0006900696, 5.940995, 419.484644], [.0006105337, .940377, 639.897286], [.0004891329, 1.557336, 202.253395], [.0003414377, .195191, 277.034994], [.0003240177, 5.470846, 949.175609], [.000209366, .463493, 735.876514], [.000208393, 1.521025, 433.711738], [.0002074675, 5.332555, 199.072001], [.000152984, 3.059438, 529.690965], [.0001429648, 2.604335, 323.505417], [.0001199334, 5.98051, 846.082835], [.0001138026, 1.731054, 522.577418], [.0001288462, 1.648907, 138.517497], [7.75266e-05, 5.851907, 95.979227], [9.796e-05, 5.204775, 1265.567479], [6.46582e-05, .177322, 1052.268383], [6.77061e-05, 3.004323, 14.227094], [5.85046e-05, 1.455201, 415.552491], [5.30742e-05, .597422, 63.735898], [4.69549e-05, 2.149139, 227.526189], [4.04405e-05, 1.640066, 209.366942], [3.68824e-05, .780173, 412.371097], [3.37658e-05, 3.695268, 224.344796], [2.88543e-05, 1.387645, 838.969288], [2.97595e-05, 5.684691, 210.117702], [3.41962e-05, 4.945505, 1581.959348], [3.46094e-05, 1.850887, 175.16606], [3.4007e-05, .553853, 350.33212], [2.50766e-05, 3.538548, 742.990061], [2.44826e-05, 6.18411, 1368.660253], [2.40613e-05, 2.965571, 117.319868], [2.8811e-05, .179625, 853.196382], [2.17393e-05, .015043, 340.770892], [2.02475e-05, 5.054044, 11.0457], [1.74028e-05, 2.346586, 309.278323], [1.86149e-05, 5.933698, 625.670192], [1.88837e-05, .029657, 3.932153], [1.61096e-05, 1.172946, 74.781599], [1.46265e-05, 1.925921, 216.480489], [1.47467e-05, 5.676705, 203.737868], [1.39512e-05, 5.936814, 127.471797], [1.78107e-05, .763211, 217.231249], [1.81717e-05, 5.77721, 490.334089], [1.47265e-05, 1.400744, 137.033024], [1.30424e-05, .772422, 647.010833], [1.14963e-05, 5.740185, 1162.474704], [1.12666e-05, 4.466955, 265.989293], [1.27762e-05, 2.984164, 1059.38193], [1.20707e-05, .753042, 351.816592], [1.07137e-05, 1.135594, 1155.361157], [1.02084e-05, 5.912164, 1685.052123], [1.31485e-05, 5.112113, 211.814623], [1.29545e-05, 4.691818, 1898.351218], [1.09907e-05, 1.817727, 149.563197], [9.987e-06, 2.631536, 200.768922], [9.8589e-06, 2.259946, 956.289156], [9.325e-06, 3.669765, 554.069987], [6.6438e-06, .602938, 728.762967], [6.5977e-06, 4.666266, 195.139848], [6.1773e-06, 5.620795, 942.062062], [6.2632e-06, 5.942238, 1478.866574], [4.8232e-06, 1.840485, 479.288389], [4.8802e-06, 2.793701, 3.181394], [4.6998e-06, .838525, 1471.753027], [4.5179e-06, 5.645114, 2001.443992], [5.5312e-06, 3.411132, 269.921447], [5.3442e-06, 1.264483, 275.550521], [4.7246e-06, 1.881976, 515.463871], [4.0556e-06, 1.639894, 536.804512], [5.1698e-06, 4.443017, 2214.743088], [4.5303e-06, 3.003559, 302.164776], [4.9436e-06, 2.286318, 278.519466], [4.8996e-06, 5.806278, 191.207695], [4.2744e-06, .057286, 284.148541], [3.3968e-06, 1.401933, 440.825285], [3.4067e-06, .890951, 628.851586], [3.8594e-06, 1.997113, 1272.681026], [3.4278e-06, 5.855873, 1795.258444], [3.4138e-06, 2.376198, 525.498179], [3.0338e-06, .879512, 6069.776755]], [[.0618298134, .258435, 213.299095], [.0050657724, .711146, 206.185548], [.0034139403, 5.796357, 426.598191], [.001884912, .472156, 220.412642], [.0018626149, 3.141593, 0.0], [.0014389115, 1.407448, 7.113547], [.0004962121, 6.017443, 103.092774], [.0002092843, 5.092449, 639.897286], [.0001995256, 1.175606, 419.484644], [.0001883954, 1.608183, 110.206321], [.0001289284, 5.943294, 433.711738], [.0001387685, .758849, 199.072001], [5.39684e-05, 1.288536, 14.227094], [4.86929e-05, .867972, 323.505417], [4.24722e-05, .39295, 227.526189], [3.25233e-05, 1.258502, 95.979227], [2.85607e-05, 2.167313, 735.876514], [2.90954e-05, 4.606807, 202.253395], [3.08141e-05, 3.436625, 522.577418], [1.98773e-05, 2.450538, 412.371097], [1.94144e-05, 6.023923, 209.366942], [1.58178e-05, 1.291891, 210.117702], [1.33952e-05, 4.308125, 853.196382], [1.31546e-05, 1.252956, 117.319868], [1.20287e-05, 1.866619, 316.39187]], [[.0043690257, 4.786717, 213.299095], [.000719225, 2.500701, 206.185548], [.0004976687, 4.971678, 220.412642], [.0004322078, 3.86941, 426.598191], [.0002964577, 5.963099, 7.113547]], [[.0002031524, 3.021861, 213.299095]]]];
13
13
  /** Uranus's series, on its own so that a page that needs one planet imports only it. */
14
14
  export const VSOP_URANUS = [[[[5.481292943, 0.0, 0.0], [.0926040823, .891064, 74.781599], [.015042479, 3.627193, 1.484473], [.0036598167, 1.899622, 73.297126], [.0027232817, 3.358237, 149.563197], [.0007032846, 5.392545, 63.735898], [.0006889268, 6.092925, 76.266071], [.0006199862, 2.269521, 2.968945], [.0006195072, 2.850989, 11.0457], [.0002646877, 3.141521, 71.812653], [.0002571048, 6.113798, 454.909367], [.0002107885, 4.360593, 148.078724], [.0001781865, 1.744369, 36.648563], [.0001461351, 4.737322, 3.932153], [.0001116251, 5.826818, 224.344796], [.0001099791, .48865, 138.517497], [9.52748e-05, 2.955169, 35.16409], [7.5456e-05, 5.236266, 109.945689], [4.22024e-05, 3.233282, 70.849445], [4.0519e-05, 2.27755, 151.04767], [3.3546e-05, 1.06549, 4.453418], [2.92672e-05, 4.629037, 9.561228], [3.49034e-05, 5.483061, 146.594252], [3.14407e-05, 4.751996, 77.750544], [2.92233e-05, 5.352354, 85.827299], [2.27279e-05, 4.366004, 70.32818], [2.05122e-05, 1.517736, .111875], [2.1486e-05, .607459, 38.133036], [1.99164e-05, 4.924376, 277.034994], [1.37623e-05, 2.042835, 65.220371], [1.6669e-05, 3.627441, 380.127768], [1.28411e-05, 3.11348, 202.253395], [1.15043e-05, .933436, 3.181394], [1.53322e-05, 2.585947, 52.690198], [1.2816e-05, .542713, 222.860323], [1.37214e-05, 4.196415, 111.430161], [1.22103e-05, .199007, 108.461216], [9.4618e-06, 1.192532, 127.471797], [1.15099e-05, 4.178989, 33.679618], [1.24435e-05, .916144, 2.447681], [1.07201e-05, .23566, 62.251426], [1.09046e-05, 1.775015, 12.530173], [7.0794e-06, 5.182917, 213.299095], [6.5338e-06, .965879, 78.713752], [6.2757e-06, .18209, 984.600332], [5.2449e-06, 2.012754, 299.126394], [5.594e-06, 3.357686, .521265], [6.0685e-06, 5.432099, 529.690965], [4.049e-06, 5.986905, 8.076755], [4.6718e-06, .414825, 145.109779], [4.7131e-06, 1.406616, 184.727287], [4.8323e-06, 2.105532, .963208], [3.9557e-06, 5.870379, 351.816592], [4.3353e-06, 5.52141, 183.242815], [3.0984e-06, 5.833019, 145.631044], [3.7864e-06, 2.349894, 56.622351], [3.9903e-06, .337965, 415.552491], [3.0039e-06, 5.643552, 22.091401]], [[74.7815986091, 0.0, 0.0], [.0015433286, 5.241588, 74.781599], [.0002445647, 1.712603, 1.484473], [9.25844e-05, .428297, 11.0457], [8.26598e-05, 1.502181, 63.735898], [9.15016e-05, 1.412138, 149.563197], [3.89911e-05, .464836, 3.932153], [2.27706e-05, 4.171992, 76.266071], [1.92747e-05, .529762, 2.968945], [1.23272e-05, 1.586321, 70.849445]]], [[[.0134627765, 2.618778, 74.781599], [.000623414, 5.081112, 149.563197], [.000616012, 3.141593, 0.0], [9.96372e-05, 1.616038, 76.266071], [9.92616e-05, .576304, 73.297126], [3.25947e-05, 1.261193, 224.344796], [2.9723e-05, 2.243672, 1.484473], [2.01027e-05, 6.055509, 148.078724], [1.52216e-05, .279596, 63.735898], [9.2406e-06, 4.038225, 151.04767], [7.6064e-06, 6.139994, 71.812653], [4.2027e-06, 5.212801, 11.0457], [4.3066e-06, 3.554439, 213.299095], [4.3685e-06, 3.380811, 529.690965], [5.2231e-06, 3.320864, 138.517497], [4.3463e-06, .340632, 77.750544], [4.6263e-06, .742567, 85.827299]], [[.0003410198, .013219, 74.781599], [2.48011e-05, 2.739614, 149.563197], [1.71938e-05, 0.0, 0.0]]], [[[19.2126484721, 0.0, 0.0], [.8878498441, 5.603775, 74.781599], [.0344083606, .328361, 73.297126], [.0205565386, 1.782952, 149.563197], [.0064932241, 4.522473, 76.266071], [.0060224787, 3.860038, 63.735898], [.0049640417, 1.401399, 454.909367], [.0033852537, 1.580028, 138.517497], [.0024350911, 1.570866, 71.812653], [.001905223, 1.998094, 1.484473], [.0016185884, 2.791378, 148.078724], [.0014370618, 1.383685, 11.0457], [.0009319241, .174372, 36.648563], [.0007142455, 4.245092, 224.344796], [.0008980601, 3.661054, 109.945689], [.0003900972, 1.669714, 70.849445], [.000466773, 1.399764, 35.16409], [.0003902562, 3.362348, 277.034994], [.0003675527, 3.886493, 146.594252], [.0003034872, .701008, 151.04767], [.0002915641, 3.180563, 77.750544], [.0002047159, 1.55588, 202.253395], [.0002562076, 5.256561, 380.127768], [.0002578588, 3.785377, 85.827299], [.0002263707, .725187, 529.690965], [.0002047353, 2.796402, 70.32818], [.000179013, .554551, 2.968945], [.0001232811, 5.960373, 127.471797], [.0001470167, 4.904345, 108.461216], [.0001149468, .43772, 65.220371], [.0001550237, 5.354054, 38.133036], [.000107925, 1.421063, 213.299095], [.0001169569, 3.298242, 3.932153], [.0001195908, 1.750434, 984.600332], [.0001289645, 2.621541, 111.430161], [.0001185296, .993442, 52.690198], [9.11162e-05, 4.996336, 62.251426], [8.42079e-05, 5.253514, 222.860323], [7.44899e-05, .794955, 351.816592], [8.40238e-05, 5.038765, 415.552491], [6.04622e-05, 5.679586, 78.713752], [5.52441e-05, 3.114933, 9.561228], [7.3293e-05, 3.972766, 183.242815], [5.44457e-05, 5.105748, 145.109779], [5.2382e-05, 2.629605, 33.679618], [4.07952e-05, 3.220641, 340.770892], [3.80165e-05, 6.109827, 184.727287], [3.91873e-05, 4.250177, 39.617508], [2.94076e-05, 2.146497, 137.033024], [3.7812e-05, 3.458404, 456.393839], [2.94222e-05, .423928, 299.126394], [3.68632e-05, 2.48726, 453.424894], [3.1015e-05, 4.140286, 219.891378], [2.96264e-05, .829819, 56.622351], [2.93758e-05, 3.676522, 140.00197], [2.86479e-05, .30999, 12.530173], [2.53811e-05, 4.854432, 131.40395], [1.96279e-05, 5.243268, 84.342826], [2.36372e-05, .442447, 554.069987], [1.97841e-05, 6.12839, 106.976743], [2.1826e-05, 2.940425, 305.346169], [1.96325e-05, .041146, 221.37585], [1.82978e-05, 4.011052, 68.843708], [1.64292e-05, .355581, 67.668052], [1.58488e-05, 3.162658, 225.829268], [1.84802e-05, 2.911163, 909.818733], [1.63226e-05, 4.230386, 22.091401], [1.4022e-05, 1.391067, 265.989293], [1.40402e-05, 5.635679, 4.453418], [1.65649e-05, 1.964365, 79.235017], [1.24848e-05, 5.440086, 54.174671], [1.5634e-05, 1.479195, 112.914634], [1.24851e-05, 4.889645, 479.288389], [1.19765e-05, 2.521525, 145.631044], [1.50694e-05, 5.241854, 181.758342], [1.48195e-05, 5.662014, 152.532143], [1.43912e-05, 1.530477, 447.79582], [1.40887e-05, 4.419212, 462.022914], [1.477e-05, 4.321732, 256.539941], [1.22823e-05, 5.976978, 59.803745], [1.24989e-05, 6.244805, 160.608897], [9.0652e-06, 5.620131, 74.669724], [1.09069e-05, 4.153943, 77.962992], [8.4483e-06, .129661, 82.858353], [9.0058e-06, 2.373031, 74.893473], [1.07165e-05, 1.742982, 528.206492], [6.8952e-06, 3.080879, 69.364973], [5.9401e-06, 4.500317, 8.076755], [7.1864e-06, 4.000287, 128.956269], [6.9987e-06, .0399, 143.625306], [5.7567e-06, 5.89554, 66.704844], [7.5868e-06, 2.136938, 692.587484], [7.1027e-06, 5.416052, 218.406905], [5.4866e-06, 5.628118, 3.181394], [6.5176e-06, 4.423171, 18.159247], [5.3973e-06, 6.207798, 71.600205], [5.449e-06, 5.694095, 203.737868], [7.1025e-06, 4.219675, 381.612241], [5.9403e-06, 3.837942, 32.195145], [7.099e-06, 4.489627, 293.188503], [7.057e-06, .455185, 835.037134], [5.8785e-06, 5.082682, 186.21176], [5.9819e-06, .357925, 269.921447], [6.4215e-06, 2.710908, 87.311772], [4.9564e-06, 2.651117, 200.768922], [6.3017e-06, 4.461536, 275.550521], [5.7495e-06, 5.578773, 2.447681], [5.6962e-06, 1.639246, 77.229279], [5.5667e-06, 1.072319, 1059.38193], [4.4936e-06, .279882, 617.805886], [4.637e-06, 1.434508, 297.641922], [4.3654e-06, .527839, 209.366942], [4.6392e-06, 2.355197, 211.814623], [4.3594e-06, 2.100772, 1514.291297], [5.1553e-06, 3.232742, 284.148541], [4.55e-06, 4.08342, 99.160621], [4.7725e-06, 2.893817, 39.356876], [5.4269e-06, 5.394573, 278.519466], [4.099e-06, 3.049619, 404.50679], [3.6839e-06, .710795, 125.987324], [5.0318e-06, 5.839155, 191.207695], [4.874e-06, .064243, 60.766953], [4.5503e-06, 2.59321, 490.334089], [4.3635e-06, 2.081294, 51.205725], [4.3576e-06, 2.794444, 75.744806], [3.2348e-06, 4.829392, 195.139848], [3.5934e-06, .008704, 35.424723], [4.2908e-06, 3.080578, 41.101981], [3.1999e-06, 5.48622, 14.977854], [4.1396e-06, .088226, 258.024413], [3.7973e-06, .058345, 378.643295], [4.2021e-06, 2.253923, 81.001374], [3.5753e-06, 4.714083, 173.94222], [3.5894e-06, .352695, 426.598191], [4.0537e-06, 6.12345, 24.379022], [3.6509e-06, 5.594719, 255.055468], [3.0816e-06, 3.923166, 116.426096], [3.2555e-06, 4.719733, 134.585344], [3.8641e-06, .686292, 230.564571], [3.0558e-06, 3.761315, 344.703045], [3.5335e-06, 4.657207, 329.837066], [3.0184e-06, .131736, 565.115688], [3.0535e-06, 2.555347, 6208.294251]], [[.0147989663, 3.672057, 74.781599], [.0007121214, 6.22601, 63.735898], [.0006862716, 6.134112, 149.563197], [.0002085755, 5.246258, 11.0457], [.0002146836, 2.601757, 76.266071], [.0002405937, 3.141593, 0.0], [.0001140506, .018497, 70.849445], [7.4968e-05, .423614, 73.297126], [4.24361e-05, 1.416911, 85.827299], [3.50595e-05, 2.583481, 138.517497], [3.2288e-05, 5.254956, 3.932153], [3.92683e-05, 3.155263, 71.812653], [3.0599e-05, .153238, 1.484473], [3.57825e-05, 2.311579, 224.344796], [2.56424e-05, .980785, 148.078724], [2.42919e-05, 3.994507, 52.690198], [1.64483e-05, 2.653104, 127.471797], [1.58357e-05, 1.430495, 78.713752], [1.41338e-05, 4.574616, 202.253395], [1.48972e-05, 2.675684, 56.622351], [1.40328e-05, 1.369862, 77.750544], [1.22789e-05, 1.046994, 62.251426], [1.50784e-05, 5.060192, 151.04767]], [[.000224399, .699533, 74.781599]]]];
15
15
  /** Neptune's series, on its own so that a page that needs one planet imports only it. */
16
- export const VSOP_NEPTUNE = [[[[5.3118863305, 0.0, 0.0], [.0179847553, 2.901013, 38.133036], [.0101972765, .485809, 1.484473], [.0012453184, 4.830081, 36.648563], [.0004206447, 5.41055, 2.968945], [.0003771458, 6.092218, 35.16409], [.0003378474, 1.244889, 76.266071], [.0001648274, 7.7e-05, 491.557929], [9.19858e-05, 4.937471, 39.617508], [8.99425e-05, .274622, 175.16606], [4.21624e-05, 1.987119, 73.297126], [3.36481e-05, 1.035901, 33.679618], [2.2848e-05, 4.206069, 4.453418], [1.43352e-05, 2.783398, 74.781599], [9.0024e-06, 2.076072, 109.945689], [7.45e-06, 3.190325, 71.812653], [5.0622e-06, 5.747861, 114.399107], [3.9955e-06, .349723, 1021.248895], [3.4519e-06, 3.461853, 41.101981], [3.0634e-06, .496841, .521265], [3.23e-06, 2.248149, 32.195145], [3.403e-06, 3.303762, 77.750544]], [[38.1330356396, 0.0, 0.0], [.0001660417, 4.863233, 1.484473], [.0001574405, 2.278874, 38.133036], [1.30626e-05, 3.672852, 2.968945]]], [[[.0308862293, 1.441044, 38.133036], [.0002778009, 5.912719, 76.266071], [.0002762361, 0.0, 0.0], [.0001535549, 2.521238, 36.648563], [.0001544813, 3.508771, 39.617508], [1.99992e-05, 1.509987, 74.781599], [1.96754e-05, 4.377782, 1.484473], [1.01514e-05, 3.21561, 35.16409], [6.0577e-06, 2.802466, 73.297126], [5.9488e-06, 2.128927, 41.101981], [5.8881e-06, 3.186559, 2.968945], [4.0183e-06, 4.168834, 114.399107]], [[5.1509e-05, 2.142705, 38.133036]]], [[[30.0701320583, 0.0, 0.0], [.2706225963, 1.329995, 38.133036], [.0169176401, 3.251861, 36.648563], [.0080783055, 5.185929, 1.484473], [.0053776051, 4.521139, 35.16409], [.0049572514, 1.571056, 491.557929], [.0027457197, 1.845523, 175.16606], [.0013513409, 3.372206, 39.617508], [.0012180175, 5.797545, 76.266071], [.0010089607, .377027, 73.297126], [.0006979133, 3.796166, 2.968945], [.0004668784, 5.74938, 33.679618], [.0002459453, .508017, 109.945689], [.0001693948, 1.594225, 71.812653], [.0001422981, 1.077859, 74.781599], [.0001201232, 1.920594, 1021.248895], [8.39435e-05, .678182, 146.594252], [7.5718e-05, 1.071492, 388.465155], [5.72087e-05, 2.590617, 4.453418], [4.84021e-05, 1.90681, 41.101981], [4.48349e-05, 2.905735, 529.690965], [4.2696e-05, 3.413335, 453.424894], [4.35359e-05, .679849, 32.195145], [4.42055e-05, 1.749907, 108.461216], [2.87976e-05, 1.986272, 137.033024], [2.63553e-05, 3.09756, 213.299095], [3.38111e-05, .84811, 183.242815], [2.87751e-05, 3.674172, 350.33212], [2.30651e-05, 2.809646, 70.32818], [2.52994e-05, 5.798223, 490.073457], [2.52287e-05, .486121, 493.042402], [2.08593e-05, .618539, 33.94025], [1.97652e-05, 5.11703, 168.052513], [1.90405e-05, 1.721659, 182.279607], [1.65353e-05, 1.92782, 145.109779], [1.43451e-05, 1.699859, 484.444382], [1.40303e-05, 4.589142, 498.671476], [1.49999e-05, 1.016199, 219.891378], [1.39798e-05, .761998, 176.650533], [1.40276e-05, 6.076591, 173.681587], [1.12828e-05, 5.966665, 9.561228], [1.22806e-05, 1.599159, 77.750544], [8.3556e-06, 3.970505, 114.399107], [8.1141e-06, 3.002641, 46.20979], [7.3154e-06, 2.104458, 181.758342], [6.1562e-06, 2.978679, 106.976743], [7.0345e-06, 1.187482, 256.539941], [5.0196e-06, 1.386547, 5.937891], [5.3048e-06, 4.241122, 111.430161], [4.371e-06, 2.270292, 1550.93986], [3.9991e-06, 1.256123, 8.076755], [4.2099e-06, 1.892482, 30.710672], [3.8246e-06, 3.299641, 983.115859], [4.2289e-06, 5.530996, 525.498179], [3.5506e-06, 2.278731, 218.406905], [3.145e-06, 3.959329, 381.351608], [3.3326e-06, 5.750149, 39.096243], [3.2143e-06, 1.506243, 454.909367], [3.092e-06, 2.854513, 72.073286], [3.4554e-06, 1.358019, 293.188503], [3.0736e-06, .3194, 601.764251], [3.06e-06, 2.724751, 6244.942814]], [[.0023633862, .70498, 38.133036], [.0001322003, 3.320144, 1.484473], [8.62178e-05, 6.216269, 35.16409], [2.70159e-05, 1.88125, 39.617508], [2.15306e-05, 5.16877, 76.266071], [2.15417e-05, 2.094303, 2.968945], [1.46331e-05, 1.184102, 33.679618], [1.60316e-05, 0.0, 0.0]]]];
16
+ export const VSOP_NEPTUNE = [[[[5.3118863305, 0.0, 0.0], [.0179847553, 2.901013, 38.133036], [.0101972765, .485809, 1.484473], [.0012453184, 4.830081, 36.648563], [.0004206447, 5.41055, 2.968945], [.0003771458, 6.092218, 35.16409], [.0003378474, 1.244889, 76.266071], [.0001648274, 7.7e-05, 491.557929], [9.19858e-05, 4.937471, 39.617508], [8.99425e-05, .274622, 175.16606], [4.21624e-05, 1.987119, 73.297126], [3.36481e-05, 1.035901, 33.679618], [2.2848e-05, 4.206069, 4.453418], [1.43352e-05, 2.783398, 74.781599], [9.0024e-06, 2.076072, 109.945689], [7.45e-06, 3.190325, 71.812653], [5.0622e-06, 5.747861, 114.399107], [3.9955e-06, .349723, 1021.248895], [3.4519e-06, 3.461853, 41.101981], [3.0634e-06, .496841, .521265], [3.23e-06, 2.248149, 32.195145], [3.403e-06, 3.303762, 77.750544], [-5.848e-06, 0.0, 0.0]], [[38.1330356396, 0.0, 0.0], [.0001660417, 4.863233, 1.484473], [.0001574405, 2.278874, 38.133036], [1.30626e-05, 3.672852, 2.968945], [-7.63434e-05, 0.0, 0.0]]], [[[.0308862293, 1.441044, 38.133036], [.0002778009, 5.912719, 76.266071], [.0002762361, 0.0, 0.0], [.0001535549, 2.521238, 36.648563], [.0001544813, 3.508771, 39.617508], [1.99992e-05, 1.509987, 74.781599], [1.96754e-05, 4.377782, 1.484473], [1.01514e-05, 3.21561, 35.16409], [6.0577e-06, 2.802466, 73.297126], [5.9488e-06, 2.128927, 41.101981], [5.8881e-06, 3.186559, 2.968945], [4.0183e-06, 4.168834, 114.399107]], [[5.1509e-05, 2.142705, 38.133036]]], [[[30.0701320583, 0.0, 0.0], [.2706225963, 1.329995, 38.133036], [.0169176401, 3.251861, 36.648563], [.0080783055, 5.185929, 1.484473], [.0053776051, 4.521139, 35.16409], [.0049572514, 1.571056, 491.557929], [.0027457197, 1.845523, 175.16606], [.0013513409, 3.372206, 39.617508], [.0012180175, 5.797545, 76.266071], [.0010089607, .377027, 73.297126], [.0006979133, 3.796166, 2.968945], [.0004668784, 5.74938, 33.679618], [.0002459453, .508017, 109.945689], [.0001693948, 1.594225, 71.812653], [.0001422981, 1.077859, 74.781599], [.0001201232, 1.920594, 1021.248895], [8.39435e-05, .678182, 146.594252], [7.5718e-05, 1.071492, 388.465155], [5.72087e-05, 2.590617, 4.453418], [4.84021e-05, 1.90681, 41.101981], [4.48349e-05, 2.905735, 529.690965], [4.2696e-05, 3.413335, 453.424894], [4.35359e-05, .679849, 32.195145], [4.42055e-05, 1.749907, 108.461216], [2.87976e-05, 1.986272, 137.033024], [2.63553e-05, 3.09756, 213.299095], [3.38111e-05, .84811, 183.242815], [2.87751e-05, 3.674172, 350.33212], [2.30651e-05, 2.809646, 70.32818], [2.52994e-05, 5.798223, 490.073457], [2.52287e-05, .486121, 493.042402], [2.08593e-05, .618539, 33.94025], [1.97652e-05, 5.11703, 168.052513], [1.90405e-05, 1.721659, 182.279607], [1.65353e-05, 1.92782, 145.109779], [1.43451e-05, 1.699859, 484.444382], [1.40303e-05, 4.589142, 498.671476], [1.49999e-05, 1.016199, 219.891378], [1.39798e-05, .761998, 176.650533], [1.40276e-05, 6.076591, 173.681587], [1.12828e-05, 5.966665, 9.561228], [1.22806e-05, 1.599159, 77.750544], [8.3556e-06, 3.970505, 114.399107], [8.1141e-06, 3.002641, 46.20979], [7.3154e-06, 2.104458, 181.758342], [6.1562e-06, 2.978679, 106.976743], [7.0345e-06, 1.187482, 256.539941], [5.0196e-06, 1.386547, 5.937891], [5.3048e-06, 4.241122, 111.430161], [4.371e-06, 2.270292, 1550.93986], [3.9991e-06, 1.256123, 8.076755], [4.2099e-06, 1.892482, 30.710672], [3.8246e-06, 3.299641, 983.115859], [4.2289e-06, 5.530996, 525.498179], [3.5506e-06, 2.278731, 218.406905], [3.145e-06, 3.959329, 381.351608], [3.3326e-06, 5.750149, 39.096243], [3.2143e-06, 1.506243, 454.909367], [3.092e-06, 2.854513, 72.073286], [3.4554e-06, 1.358019, 293.188503], [3.0736e-06, .3194, 601.764251], [3.06e-06, 2.724751, 6244.942814]], [[.0023633862, .70498, 38.133036], [.0001322003, 3.320144, 1.484473], [8.62178e-05, 6.216269, 35.16409], [2.70159e-05, 1.88125, 39.617508], [2.15306e-05, 5.16877, 76.266071], [2.15417e-05, 2.094303, 2.968945], [1.46331e-05, 1.184102, 33.679618], [1.60316e-05, 0.0, 0.0]]]];
17
17
  /** Every planet's series by name. */
18
18
  export const VSOP87 = {
19
19
  mercury: VSOP_MERCURY,
package/dist/element.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { SharedRenderer } from "@johnmorrisdotca/kazoku-ui/renderer";
2
- import "./tables/all.ts";
2
+ import "./tables/ceres.ts";
3
+ import "./tables/dwarfs.ts";
3
4
  import { type BodyId, type Look } from "./facts.ts";
4
5
  export { TEXTURE_BASE, TEXTURE_FAR_BASE } from "./scene/textures.ts";
5
6
  import { type ThreeParts } from "./scene/body.ts";
package/dist/element.js CHANGED
@@ -1,4 +1,6 @@
1
- import "./tables/all.js";
1
+ import "./tables/ceres.js";
2
+ import "./tables/dwarfs.js";
3
+ import { loadMoonTheory } from "./tables/lazy.js";
2
4
  import { orbitPath, nearMoons } from "./ephemeris.js";
3
5
  import { BODIES, ringReach } from "./facts.js";
4
6
  import { createGate, frameCap } from "./gate.js";
@@ -321,6 +323,17 @@ export class WakuseiBody extends HTMLElement {
321
323
  this.#tilted.set(id, { source: orbit, tilt, roll, out });
322
324
  return out;
323
325
  }
326
+ /** The moons of Jupiter and Saturn follow their theories once those are fetched; until then the fitted orbits answer. */
327
+ #wantTheory(id) {
328
+ const planet = BODIES[id].parent ?? id;
329
+ void loadMoonTheory(planet).then((loaded) => {
330
+ if (!loaded)
331
+ return;
332
+ this.#live = createLive();
333
+ this.#orbitKey = "";
334
+ this.#queue(true);
335
+ });
336
+ }
324
337
  #ensureOrbits(frame) {
325
338
  const r = this.#request();
326
339
  if (!r.moons || frame.time === undefined)
@@ -334,7 +347,10 @@ export class WakuseiBody extends HTMLElement {
334
347
  this.#orbits.set(m.id, orbitPath(m.id, frame.time));
335
348
  }
336
349
  #frameNow() {
337
- const frame = this.#live.at(this.#request(), performance.now());
350
+ const request = this.#request();
351
+ if (request.moons)
352
+ this.#wantTheory(request.id);
353
+ const frame = this.#live.at(request, performance.now());
338
354
  if (frame.anchors !== this.#lastAnchors) {
339
355
  this.#lastAnchors = frame.anchors;
340
356
  const b = (Math.asin(Math.max(-1, Math.min(1, frame.pose.pole[2]))) * 180) / Math.PI;
package/dist/ephemeris.js CHANGED
@@ -3,6 +3,7 @@
3
3
  // and outside those years JPL's "Keplerian Elements for Approximate Positions of the Major Planets", Table 1 (https://ssd.jpl.nasa.gov/planets/approx_pos.html). The Moon: the lunar solution ELP2000-82B (Chapront-Touze and Chapront, IMCCE) cut to its largest terms (data/lunar.ts). Other moons: fitted to JPL Horizons (data/orbits.ts).
4
4
  // Light travel time is allowed for, so a turning planet shows the face it really showed when the light left. Pure: no DOM, no three.js.
5
5
  import { ORBITS } from "./data/orbits.js";
6
+ import { moonTheoryOf, planetSeriesOf } from "./data/theories.js";
6
7
  import { DWARF_ELEMENTS } from "./data/dwarf.js";
7
8
  import { tableOf } from "./data/tables.js";
8
9
  import { PLUTO, PLUTO_SEGMENT_MS, PLUTO_START } from "./data/pluto.js";
@@ -96,7 +97,7 @@ function barycentreFromSun(terrestrialMs) {
96
97
  let total = 1;
97
98
  for (const id of Object.keys(MASS_OVER_SUN)) {
98
99
  const m = MASS_OVER_SUN[id];
99
- const p = vsopPosition(VSOP87[id], terrestrialMs);
100
+ const p = vsopPosition(planetSeriesOf(id) ?? VSOP87[id], terrestrialMs);
100
101
  x += m * p[0];
101
102
  y += m * p[1];
102
103
  z += m * p[2];
@@ -119,7 +120,7 @@ function barycentreFromSun(terrestrialMs) {
119
120
  * ```
120
121
  */
121
122
  export function heliocentric(planet, ms) {
122
- const vsop = VSOP87[planet];
123
+ const vsop = planetSeriesOf(planet) ?? VSOP87[planet];
123
124
  if (vsop !== undefined)
124
125
  return vsopPosition(vsop, toTerrestrialTime(ms));
125
126
  if (planet === "pluto" || tableOf(planet) !== undefined) {
@@ -331,6 +332,9 @@ export function apparent(id, time) {
331
332
  export function moonVector(id, ms) {
332
333
  if (id === "moon")
333
334
  return moonGeocentric(ms);
335
+ const theory = moonTheoryOf(id);
336
+ if (theory !== undefined)
337
+ return theory(toTerrestrialTime(ms));
334
338
  const orbit = ORBITS[id];
335
339
  if (orbit === undefined)
336
340
  throw new Error(`no orbit for ${id}`);
@@ -0,0 +1,344 @@
1
+ import { type BodyFacts, type BodyId } from "./facts.ts";
2
+ import type { Observer } from "./sky/types.ts";
3
+ import { type When } from "./when.ts";
4
+ /**
5
+ * What kind of body: the Sun is `"star"`.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { nearest, type NearestKind } from "@johnmorrisdotca/wakusei-planets/nearest";
10
+ *
11
+ * const kind: NearestKind = "planet";
12
+ * console.log(nearest("moon", { kind, count: 1, date: Date.UTC(2026, 10, 8) })[0]?.id);
13
+ * ```
14
+ */
15
+ export type NearestKind = BodyFacts["kind"];
16
+ /**
17
+ * Where the sky is seen from: a body's centre (`"mars"` for the sky of Mars), or a place on the Earth, whose parallax counts (the Moon is up to a degree different from there than from the Earth's centre). The default is the Earth's centre.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * import { nearest, type Viewpoint } from "@johnmorrisdotca/wakusei-planets/nearest";
22
+ *
23
+ * const vancouver: Viewpoint = { latitude: 49.28, longitude: -123.12 };
24
+ * console.log(nearest("moon", { observer: vancouver, count: 1, date: Date.UTC(2026, 10, 8) })[0]?.id);
25
+ * ```
26
+ */
27
+ export type Viewpoint = BodyId | Observer;
28
+ /**
29
+ * The options of `nearest`, `within`, `closestApproach` and `conjunctions` that mean the same in each.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * import { nearest, type NearestOptions } from "@johnmorrisdotca/wakusei-planets/nearest";
34
+ *
35
+ * const options: NearestOptions = { count: 3, kind: "planet", date: Date.UTC(2026, 10, 8) };
36
+ * console.log(nearest("moon", options).map((row) => row.id).join(", "));
37
+ * ```
38
+ */
39
+ export interface NearestOptions {
40
+ /** How many to return. Default 5, or all of those inside `within` when `within` is given. */
41
+ count?: number;
42
+ /** Only those this close: degrees for `by: "sky"`, kilometres for `by: "space"`. */
43
+ within?: number;
44
+ /** Only this kind of body, or any of these kinds. */
45
+ kind?: NearestKind | readonly NearestKind[];
46
+ /** Search only these bodies. Default: every body. */
47
+ bodies?: readonly BodyId[];
48
+ /** `"sky"` (default): the angle between the two in the sky of the observer. `"space"`: the distance between their centres. */
49
+ by?: "sky" | "space";
50
+ /** The moment, a `Date` or milliseconds since 1970 (UTC). Default: now. */
51
+ date?: When;
52
+ /** Where the sky is seen from; ignored by `by: "space"`. Default: the Earth's centre. */
53
+ observer?: Viewpoint;
54
+ }
55
+ /**
56
+ * A body near the target in the sky: its angle from the target in degrees (0 to 180) and how far that angle may be off, in arc-seconds.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * import { nearest, type SkyNeighbour } from "@johnmorrisdotca/wakusei-planets/nearest";
61
+ *
62
+ * const next: SkyNeighbour | undefined = nearest("moon", { count: 1, date: Date.UTC(2026, 10, 8) })[0];
63
+ * console.log(next?.id, next?.angle.toFixed(1));
64
+ * ```
65
+ */
66
+ export interface SkyNeighbour {
67
+ id: BodyId;
68
+ kind: NearestKind;
69
+ /** The angle between the target and this body in the observer's sky, degrees. */
70
+ angle: number;
71
+ /** The accuracy to expect of `angle`, in arc-seconds: the limits the accuracy tests hold the theories to, combined. An expectation, not a bound. */
72
+ uncertaintyArcseconds: number;
73
+ }
74
+ /**
75
+ * A body near the target in space: the distance between their centres, and how far that may be off.
76
+ *
77
+ * @example
78
+ * ```ts
79
+ * import { nearest, type SpaceNeighbour } from "@johnmorrisdotca/wakusei-planets/nearest";
80
+ *
81
+ * const next: SpaceNeighbour | undefined = nearest("earth", { by: "space", count: 1, date: Date.UTC(2026, 10, 8) })[0];
82
+ * console.log(next?.id, Math.round(next?.distanceKm ?? 0));
83
+ * ```
84
+ */
85
+ export interface SpaceNeighbour {
86
+ id: BodyId;
87
+ kind: NearestKind;
88
+ /** The distance between the two centres at the date, kilometres. */
89
+ distanceKm: number;
90
+ /** The same in astronomical units. */
91
+ distanceAu: number;
92
+ /** The accuracy to expect of `distanceKm`, kilometres: the limits the accuracy tests hold the theories to, combined. An expectation, not a bound. */
93
+ uncertaintyKm: number;
94
+ }
95
+ /**
96
+ * The closest two bodies come in a span: the moment of the minimum and the separation then.
97
+ *
98
+ * @example
99
+ * ```ts
100
+ * import { closestApproach, type Approach } from "@johnmorrisdotca/wakusei-planets/nearest";
101
+ *
102
+ * const found: Approach = closestApproach("jupiter", "saturn", { from: Date.UTC(2020, 11, 1), to: Date.UTC(2021, 0, 1) });
103
+ * console.log(found.time.toISOString(), found.angle?.toFixed(2));
104
+ * ```
105
+ */
106
+ export interface Approach {
107
+ a: BodyId;
108
+ b: BodyId;
109
+ /** The moment of the minimum, to about a second of time. */
110
+ time: Date;
111
+ /** Degrees, for `by: "sky"`. */
112
+ angle?: number;
113
+ /** The accuracy to expect of `angle`, arc-seconds, for `by: "sky"`. */
114
+ uncertaintyArcseconds?: number;
115
+ /** Kilometres, for `by: "space"`. */
116
+ distanceKm?: number;
117
+ /** Astronomical units, for `by: "space"`. */
118
+ distanceAu?: number;
119
+ /** The accuracy to expect of `distanceKm`, for `by: "space"`. */
120
+ uncertaintyKm?: number;
121
+ /** How far the moment may be off, in seconds: the position's accuracy over how fast the two move past each other. */
122
+ uncertaintySeconds: number;
123
+ /** True when the smallest separation in the span is at its start or end, not a minimum inside it. */
124
+ atEdge: boolean;
125
+ }
126
+ /**
127
+ * Where a search looks, and what counts as close.
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * import { closestApproach, type ApproachOptions } from "@johnmorrisdotca/wakusei-planets/nearest";
132
+ *
133
+ * const options: ApproachOptions = { from: Date.UTC(2023, 1, 20), to: Date.UTC(2023, 2, 10) };
134
+ * console.log(closestApproach("venus", "jupiter", options).time.toISOString());
135
+ * ```
136
+ */
137
+ export interface ApproachOptions {
138
+ /** The start of the span, a `Date` or milliseconds since 1970 (UTC). */
139
+ from: When;
140
+ /** The end of the span. */
141
+ to: When;
142
+ /** `"sky"` (default) or `"space"`, as in `nearest`. */
143
+ by?: "sky" | "space";
144
+ /** Where the sky is seen from; ignored by `by: "space"`. Default: the Earth's centre. */
145
+ observer?: Viewpoint;
146
+ }
147
+ /**
148
+ * The options of `conjunctions`.
149
+ *
150
+ * @example
151
+ * ```ts
152
+ * import { conjunctions, type ConjunctionOptions } from "@johnmorrisdotca/wakusei-planets/nearest";
153
+ *
154
+ * const options: ConjunctionOptions = { from: Date.UTC(2020, 11, 1), to: Date.UTC(2021, 0, 1), bodies: ["jupiter", "saturn"], within: 1 };
155
+ * console.log(conjunctions(options).length);
156
+ * ```
157
+ */
158
+ export interface ConjunctionOptions extends ApproachOptions {
159
+ /** Only closest approaches this small: degrees for `by: "sky"` (default 5), kilometres for `by: "space"` (default: all). */
160
+ within?: number;
161
+ /** The bodies to pair up. Default: the Sun and Mercury to Neptune, without the Earth's own place. */
162
+ bodies?: readonly BodyId[];
163
+ }
164
+ /**
165
+ * The bodies nearest to a body on a date, nearest first: by the angle between them in the sky of an observer, or by the distance between them in space. The Sun, the planets, the dwarf planets and the moons are searched; the target itself, and the body the sky is seen from, are not in the answer.
166
+ *
167
+ * A sky angle is astrometric: the observer's place at the date, each body where it was when its light left (a second and a half for the Moon, hours for Neptune), with no aberration or light bending. It is the angle between two centres, found with an arc tangent so that it is as exact near 0 and 180 degrees as at 90. A distance is the straight line between the two centres at that instant, with no light time. Every result carries the accuracy to expect from the theories (the accuracy guide's limits, combined).
168
+ *
169
+ * @param target - The body to look around.
170
+ * @param options - `count` (default 5; all inside `within` when that is given), `within` (degrees for `by: "sky"`, kilometres for `by: "space"`), `kind`, `bodies` (search only these), `by`, `date` (default now) and `observer` (default the Earth's centre).
171
+ * @returns The bodies, nearest first, as `{ id, kind, angle, uncertaintyArcseconds }` for the sky and `{ id, kind, distanceKm, distanceAu, uncertaintyKm }` for space.
172
+ * @throws RangeError for a target, kind, body, count, radius or observer that is not valid, and for a sky target that is the observer's own body.
173
+ *
174
+ * @example
175
+ * ```ts
176
+ * import { nearest } from "@johnmorrisdotca/wakusei-planets/nearest";
177
+ *
178
+ * const date = Date.UTC(2020, 11, 21, 18);
179
+ * console.log(nearest("jupiter", { count: 2, kind: "planet", date }).map((row) => `${row.id} ${row.angle.toFixed(2)}`).join(", "));
180
+ * console.log(nearest("earth", { by: "space", kind: "planet", count: 2, date }).map((row) => `${row.id} ${row.distanceAu.toFixed(2)} au`).join(", "));
181
+ * ```
182
+ */
183
+ export declare function nearest(target: BodyId, options: NearestOptions & {
184
+ by: "space";
185
+ }): SpaceNeighbour[];
186
+ export declare function nearest(target: BodyId, options?: NearestOptions & {
187
+ by?: "sky";
188
+ }): SkyNeighbour[];
189
+ export declare function nearest(target: BodyId, options: NearestOptions): SkyNeighbour[] | SpaceNeighbour[];
190
+ /**
191
+ * Every body inside a radius of a body on a date, nearest first: `nearest` with no limit on how many. The radius is degrees for `by: "sky"` and kilometres for `by: "space"`.
192
+ *
193
+ * @param target - The body to look around.
194
+ * @param radius - How close, in degrees (the sky) or kilometres (space).
195
+ * @param options - The same as `nearest`, without `count` and `within`.
196
+ * @returns The bodies inside the radius, nearest first.
197
+ *
198
+ * @example
199
+ * ```ts
200
+ * import { within } from "@johnmorrisdotca/wakusei-planets/nearest";
201
+ *
202
+ * const date = Date.UTC(2023, 2, 2, 0);
203
+ * console.log(within("venus", 1, { date }).map((row) => `${row.id} ${row.angle.toFixed(2)}`).join(", "));
204
+ * console.log(within("jupiter", 1_000_000, { by: "space", kind: "moon", date }).map((row) => row.id).join(", "));
205
+ * ```
206
+ */
207
+ export declare function within(target: BodyId, radius: number, options: Omit<NearestOptions, "count" | "within"> & {
208
+ by: "space";
209
+ }): SpaceNeighbour[];
210
+ export declare function within(target: BodyId, radius: number, options?: Omit<NearestOptions, "count" | "within"> & {
211
+ by?: "sky";
212
+ }): SkyNeighbour[];
213
+ export declare function within(target: BodyId, radius: number, options: Omit<NearestOptions, "count" | "within">): SkyNeighbour[] | SpaceNeighbour[];
214
+ /**
215
+ * When two bodies come closest in a span, and how close: the span is scanned in coarse steps (the fastest body goes round forty times in the step, at most two days), then the smallest minimum is narrowed to about a second of time by golden-section search. If the separation only falls or only rises through the span, the end that is smaller is returned and `atEdge` says so. With `by: "sky"` the separation is the angle in the sky of the observer and a minimum may be an occultation, the angle falling through 0; with `by: "space"` it is the distance between the centres.
216
+ *
217
+ * The result carries `uncertaintyArcseconds` (or `uncertaintyKm`) for the separation, from the accuracy guide's limits, and `uncertaintySeconds` for the moment: that error over how fast the pair moves past each other.
218
+ *
219
+ * @param a - One body.
220
+ * @param b - The other.
221
+ * @param options - `from` and `to` (the span), `by` and `observer` as in `nearest`.
222
+ * @returns The moment, the separation, and the accuracy to expect.
223
+ * @throws RangeError for bodies, a span or an observer that is not valid, or two bodies that are the same, or one of them the observer.
224
+ *
225
+ * @example
226
+ * ```ts
227
+ * import { closestApproach } from "@johnmorrisdotca/wakusei-planets/nearest";
228
+ *
229
+ * const great = closestApproach("jupiter", "saturn", { from: Date.UTC(2020, 11, 1), to: Date.UTC(2021, 0, 1) });
230
+ * console.log(great.time.toISOString(), great.angle?.toFixed(3), "degrees");
231
+ * ```
232
+ */
233
+ export declare function closestApproach(a: BodyId, b: BodyId, options: ApproachOptions): Approach;
234
+ /**
235
+ * The close approaches of every pair of bodies in a span, soonest first: each pair's separation is scanned in coarse steps (the fastest body goes round forty times in the step, at most two days), and every minimum inside the span that is within `within` is narrowed to about a second of time. Each is the same as `closestApproach` would return for that pair and that minimum.
236
+ *
237
+ * @param options - `from` and `to`, `within` (degrees for the sky, default 5; kilometres for space, default all), `bodies` (default the Sun and Mercury to Neptune, less the body the sky is seen from), `by` and `observer`.
238
+ * @returns The approaches, soonest first, each with its moment, separation and the accuracy to expect.
239
+ * @throws RangeError for a span, body or observer that is not valid.
240
+ *
241
+ * @example
242
+ * ```ts
243
+ * import { conjunctions } from "@johnmorrisdotca/wakusei-planets/nearest";
244
+ *
245
+ * const found = conjunctions({ from: Date.UTC(2023, 0, 1), to: Date.UTC(2024, 0, 1), bodies: ["venus", "jupiter"], within: 2 });
246
+ * console.log(found.map((one) => `${one.a}-${one.b} ${one.time.toISOString().slice(0, 10)} ${one.angle?.toFixed(2)}`).join("\n"));
247
+ * ```
248
+ */
249
+ export declare function conjunctions(options: ConjunctionOptions): Approach[];
250
+ /**
251
+ * The distance between two bodies at one instant: their centres, in the Sun's frame, with no light time.
252
+ *
253
+ * @example
254
+ * ```ts
255
+ * import { distance, type Distance } from "@johnmorrisdotca/wakusei-planets/nearest";
256
+ *
257
+ * const found: Distance = distance("earth", "moon", Date.UTC(2026, 10, 8));
258
+ * console.log(Math.round(found.distanceKm), "km");
259
+ * ```
260
+ */
261
+ export interface Distance {
262
+ a: BodyId;
263
+ b: BodyId;
264
+ /** The moment, milliseconds since 1970 (UTC). */
265
+ time: number;
266
+ distanceKm: number;
267
+ distanceAu: number;
268
+ /** The accuracy to expect of `distanceKm`, kilometres: the limits the accuracy tests hold the theories to, combined. An expectation, not a bound. */
269
+ uncertaintyKm: number;
270
+ }
271
+ /**
272
+ * The least or the greatest distance of a pair over a span, and when.
273
+ *
274
+ * @example
275
+ * ```ts
276
+ * import { distanceRange, type DistanceAt } from "@johnmorrisdotca/wakusei-planets/nearest";
277
+ *
278
+ * const least: DistanceAt = distanceRange("earth", "mars", { from: Date.UTC(2003, 0, 1), to: Date.UTC(2004, 0, 1) }).min;
279
+ * console.log(least.time.toISOString().slice(0, 10), least.distanceAu.toFixed(3));
280
+ * ```
281
+ */
282
+ export interface DistanceAt {
283
+ /** The moment, to about a second of time. */
284
+ time: Date;
285
+ distanceKm: number;
286
+ distanceAu: number;
287
+ /** The accuracy to expect of `distanceKm`, kilometres. */
288
+ uncertaintyKm: number;
289
+ /** True when this is the span's start or end, not a turning point inside it. */
290
+ atEdge: boolean;
291
+ }
292
+ /**
293
+ * Where a pair is nearest and farthest over a span.
294
+ *
295
+ * @example
296
+ * ```ts
297
+ * import { distanceRange, type DistanceRange } from "@johnmorrisdotca/wakusei-planets/nearest";
298
+ *
299
+ * const range: DistanceRange = distanceRange("venus", "earth", { from: Date.UTC(2026, 0, 1), to: Date.UTC(2028, 0, 1) });
300
+ * console.log(range.min.distanceAu.toFixed(2), range.max.distanceAu.toFixed(2));
301
+ * ```
302
+ */
303
+ export interface DistanceRange {
304
+ a: BodyId;
305
+ b: BodyId;
306
+ min: DistanceAt;
307
+ max: DistanceAt;
308
+ }
309
+ /**
310
+ * The distance between two bodies on a date: the straight line between their centres at that instant, in kilometres and astronomical units, with no light time. Any two of the Sun, the planets, the dwarf planets and the moons.
311
+ *
312
+ * @param a - One body.
313
+ * @param b - The other.
314
+ * @param date - The moment, a `Date` or milliseconds since 1970 (UTC). Default: now.
315
+ * @returns The distance and the accuracy to expect of it.
316
+ * @throws RangeError for a body or a date that is not valid, or two bodies that are the same.
317
+ *
318
+ * @example
319
+ * ```ts
320
+ * import { distance } from "@johnmorrisdotca/wakusei-planets/nearest";
321
+ *
322
+ * const mars = distance("earth", "mars", Date.UTC(2003, 7, 27, 9));
323
+ * console.log(mars.distanceAu.toFixed(4), Math.round(mars.distanceKm), "km");
324
+ * ```
325
+ */
326
+ export declare function distance(a: BodyId, b: BodyId, date?: When): Distance;
327
+ /**
328
+ * The least and the greatest distance between two bodies over a span, each with its moment: the span is scanned in coarse steps (as `closestApproach` does) and each turning point is narrowed to about a second of time by golden-section search, the greatest on the negated distance. If the distance only falls or only rises through the span, the end that is the extreme is returned and `atEdge` says so.
329
+ *
330
+ * @param a - One body.
331
+ * @param b - The other.
332
+ * @param options - `from` and `to`, the span.
333
+ * @returns `min` and `max`, each `{ time, distanceKm, distanceAu, uncertaintyKm, atEdge }`.
334
+ * @throws RangeError for a body or a span that is not valid, or two bodies that are the same.
335
+ *
336
+ * @example
337
+ * ```ts
338
+ * import { distanceRange } from "@johnmorrisdotca/wakusei-planets/nearest";
339
+ *
340
+ * const { min, max } = distanceRange("earth", "mars", { from: Date.UTC(1990, 0, 1), to: Date.UTC(2020, 0, 1) });
341
+ * console.log(min.time.toISOString().slice(0, 10), min.distanceAu.toFixed(3), "to", max.distanceAu.toFixed(3), "au");
342
+ * ```
343
+ */
344
+ export declare function distanceRange(a: BodyId, b: BodyId, options: Pick<ApproachOptions, "from" | "to">): DistanceRange;