ootk 4.0.0-0 → 4.0.0-10

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.
Files changed (380) hide show
  1. package/CHANGELOG.md +198 -31
  2. package/{lib → dist}/coordinate/Hill.d.ts +17 -18
  3. package/{lib → dist}/coordinate/Hill.js +44 -36
  4. package/dist/coordinate/Hill.js.map +1 -0
  5. package/{lib → dist}/covariance/CovarianceSample.d.ts +6 -7
  6. package/{lib → dist}/covariance/CovarianceSample.js +29 -28
  7. package/dist/covariance/CovarianceSample.js.map +1 -0
  8. package/{lib → dist}/covariance/StateCovariance.d.ts +4 -3
  9. package/{lib → dist}/covariance/StateCovariance.js +8 -5
  10. package/dist/covariance/StateCovariance.js.map +1 -0
  11. package/dist/enums/CatalogSource.d.ts +8 -0
  12. package/dist/enums/CatalogSource.js +10 -0
  13. package/dist/enums/CatalogSource.js.map +1 -0
  14. package/dist/enums/CommLink.d.ts +7 -0
  15. package/dist/enums/CommLink.js +9 -0
  16. package/dist/enums/CommLink.js.map +1 -0
  17. package/dist/enums/index.d.ts +2 -0
  18. package/dist/enums/index.js +3 -0
  19. package/dist/enums/index.js.map +1 -0
  20. package/{lib → dist}/force/AtmosphericDrag.d.ts +1 -2
  21. package/{lib → dist}/force/AtmosphericDrag.js +13 -6
  22. package/dist/force/AtmosphericDrag.js.map +1 -0
  23. package/dist/force/EarthGravity.d.ts +53 -0
  24. package/{lib → dist}/force/EarthGravity.js +30 -3
  25. package/dist/force/EarthGravity.js.map +1 -0
  26. package/{lib → dist}/force/Force.d.ts +3 -2
  27. package/{lib → dist}/force/Force.js +3 -2
  28. package/dist/force/Force.js.map +1 -0
  29. package/{lib → dist}/force/ForceModel.d.ts +12 -5
  30. package/{lib → dist}/force/ForceModel.js +14 -2
  31. package/dist/force/ForceModel.js.map +1 -0
  32. package/{lib → dist}/force/Gravity.d.ts +1 -4
  33. package/{lib → dist}/force/Gravity.js +3 -4
  34. package/dist/force/Gravity.js.map +1 -0
  35. package/{lib → dist}/force/SolarRadiationPressure.d.ts +1 -2
  36. package/{lib → dist}/force/SolarRadiationPressure.js +6 -4
  37. package/dist/force/SolarRadiationPressure.js.map +1 -0
  38. package/{lib → dist}/force/ThirdBodyGravity.d.ts +1 -2
  39. package/{lib → dist}/force/ThirdBodyGravity.js +4 -3
  40. package/dist/force/ThirdBodyGravity.js.map +1 -0
  41. package/{lib → dist}/force/Thrust.d.ts +10 -11
  42. package/{lib → dist}/force/Thrust.js +8 -3
  43. package/dist/force/Thrust.js.map +1 -0
  44. package/dist/force/index.d.ts +1 -0
  45. package/dist/force/index.js +2 -0
  46. package/dist/force/index.js.map +1 -0
  47. package/dist/interfaces/RfSensorParams.d.ts +32 -0
  48. package/dist/interfaces/RfSensorParams.js +24 -0
  49. package/dist/interfaces/RfSensorParams.js.map +1 -0
  50. package/dist/interfaces/index.d.ts +1 -0
  51. package/dist/interfaces/index.js +2 -0
  52. package/dist/interfaces/index.js.map +1 -0
  53. package/{lib → dist}/interpolator/ChebyshevCoefficients.d.ts +11 -15
  54. package/{lib → dist}/interpolator/ChebyshevCoefficients.js +19 -15
  55. package/dist/interpolator/ChebyshevCoefficients.js.map +1 -0
  56. package/{lib → dist}/interpolator/ChebyshevInterpolator.d.ts +1 -2
  57. package/{lib → dist}/interpolator/ChebyshevInterpolator.js +2 -2
  58. package/dist/interpolator/ChebyshevInterpolator.js.map +1 -0
  59. package/{lib → dist}/interpolator/CubicSpline.d.ts +8 -9
  60. package/{lib → dist}/interpolator/CubicSpline.js +10 -5
  61. package/dist/interpolator/CubicSpline.js.map +1 -0
  62. package/{lib → dist}/interpolator/CubicSplineInterpolator.d.ts +2 -3
  63. package/{lib → dist}/interpolator/CubicSplineInterpolator.js +6 -4
  64. package/dist/interpolator/CubicSplineInterpolator.js.map +1 -0
  65. package/{lib → dist}/interpolator/FieldInterpolator.d.ts +7 -5
  66. package/{lib → dist}/interpolator/FieldInterpolator.js +6 -3
  67. package/dist/interpolator/FieldInterpolator.js.map +1 -0
  68. package/{lib → dist}/interpolator/Interpolator.d.ts +1 -2
  69. package/{lib → dist}/interpolator/Interpolator.js +1 -2
  70. package/dist/interpolator/Interpolator.js.map +1 -0
  71. package/{lib → dist}/interpolator/LagrangeInterpolator.d.ts +8 -10
  72. package/{lib → dist}/interpolator/LagrangeInterpolator.js +32 -29
  73. package/dist/interpolator/LagrangeInterpolator.js.map +1 -0
  74. package/{lib → dist}/interpolator/StateInterpolator.d.ts +2 -4
  75. package/{lib → dist}/interpolator/StateInterpolator.js +2 -4
  76. package/dist/interpolator/StateInterpolator.js.map +1 -0
  77. package/{lib → dist}/interpolator/VerletBlendInterpolator.d.ts +4 -5
  78. package/{lib → dist}/interpolator/VerletBlendInterpolator.js +16 -13
  79. package/dist/interpolator/VerletBlendInterpolator.js.map +1 -0
  80. package/{lib/ootk.d.ts → dist/main.d.ts} +8 -3
  81. package/dist/main.js +33 -0
  82. package/dist/main.js.map +1 -0
  83. package/{lib → dist}/maneuver/TwoBurnOrbitTransfer.d.ts +5 -7
  84. package/{lib → dist}/maneuver/TwoBurnOrbitTransfer.js +6 -3
  85. package/dist/maneuver/TwoBurnOrbitTransfer.js.map +1 -0
  86. package/{lib → dist}/maneuver/Waypoint.d.ts +30 -5
  87. package/{lib → dist}/maneuver/Waypoint.js +31 -4
  88. package/dist/maneuver/Waypoint.js.map +1 -0
  89. package/{lib → dist}/objects/DetailedSatellite.d.ts +11 -33
  90. package/dist/objects/DetailedSatellite.js +156 -0
  91. package/dist/objects/DetailedSatellite.js.map +1 -0
  92. package/{lib → dist}/objects/DetailedSensor.d.ts +14 -20
  93. package/{lib → dist}/objects/DetailedSensor.js +26 -19
  94. package/dist/objects/DetailedSensor.js.map +1 -0
  95. package/{lib → dist}/objects/LandObject.d.ts +3 -6
  96. package/{lib → dist}/objects/LandObject.js +9 -3
  97. package/dist/objects/LandObject.js.map +1 -0
  98. package/{lib → dist}/objects/Marker.d.ts +1 -2
  99. package/{lib → dist}/objects/Marker.js +1 -2
  100. package/dist/objects/Marker.js.map +1 -0
  101. package/dist/objects/RfSensor.d.ts +43 -0
  102. package/dist/objects/RfSensor.js +70 -0
  103. package/dist/objects/RfSensor.js.map +1 -0
  104. package/{lib → dist}/objects/index.d.ts +1 -1
  105. package/{lib → dist}/objects/index.js +1 -1
  106. package/dist/objects/index.js.map +1 -0
  107. package/{lib → dist}/observation/Observation.d.ts +42 -4
  108. package/{lib → dist}/observation/Observation.js +41 -10
  109. package/dist/observation/Observation.js.map +1 -0
  110. package/{lib → dist}/observation/ObservationOptical.d.ts +7 -6
  111. package/{lib → dist}/observation/ObservationOptical.js +19 -15
  112. package/dist/observation/ObservationOptical.js.map +1 -0
  113. package/{lib → dist}/observation/ObservationRadar.d.ts +7 -4
  114. package/{lib → dist}/observation/ObservationRadar.js +25 -19
  115. package/dist/observation/ObservationRadar.js.map +1 -0
  116. package/{lib → dist}/observation/ObservationUtils.d.ts +1 -2
  117. package/{lib → dist}/observation/ObservationUtils.js +1 -2
  118. package/dist/observation/ObservationUtils.js.map +1 -0
  119. package/{lib → dist}/observation/PropagatorPairs.d.ts +3 -2
  120. package/{lib → dist}/observation/PropagatorPairs.js +7 -4
  121. package/dist/observation/PropagatorPairs.js.map +1 -0
  122. package/{lib → dist}/operations/BoxMuller.d.ts +7 -2
  123. package/{lib → dist}/operations/BoxMuller.js +15 -4
  124. package/dist/operations/BoxMuller.js.map +1 -0
  125. package/dist/operations/EulerAngles.d.ts +105 -0
  126. package/{lib → dist}/operations/EulerAngles.js +72 -22
  127. package/dist/operations/EulerAngles.js.map +1 -0
  128. package/{lib → dist}/operations/Quaternion.d.ts +5 -6
  129. package/{lib → dist}/operations/Quaternion.js +12 -9
  130. package/dist/operations/Quaternion.js.map +1 -0
  131. package/{lib → dist}/operations/RandomGaussianSource.d.ts +1 -2
  132. package/{lib → dist}/operations/RandomGaussianSource.js +3 -3
  133. package/dist/operations/RandomGaussianSource.js.map +1 -0
  134. package/{lib → dist}/optimize/ChebyshevCompressor.d.ts +3 -2
  135. package/{lib → dist}/optimize/ChebyshevCompressor.js +7 -4
  136. package/dist/optimize/ChebyshevCompressor.js.map +1 -0
  137. package/{lib → dist}/optimize/DownhillSimplex.d.ts +16 -2
  138. package/{lib → dist}/optimize/DownhillSimplex.js +16 -2
  139. package/dist/optimize/DownhillSimplex.js.map +1 -0
  140. package/{lib → dist}/optimize/GoldenSection.d.ts +9 -3
  141. package/{lib → dist}/optimize/GoldenSection.js +9 -3
  142. package/dist/optimize/GoldenSection.js.map +1 -0
  143. package/{lib → dist}/optimize/PolynomialRegression.d.ts +14 -2
  144. package/{lib → dist}/optimize/PolynomialRegression.js +19 -2
  145. package/dist/optimize/PolynomialRegression.js.map +1 -0
  146. package/{lib → dist}/optimize/PolynomicalRegressionResult.d.ts +5 -2
  147. package/{lib → dist}/optimize/PolynomicalRegressionResult.js +8 -2
  148. package/dist/optimize/PolynomicalRegressionResult.js.map +1 -0
  149. package/{lib → dist}/optimize/SimpleLinearRegression.d.ts +5 -2
  150. package/{lib → dist}/optimize/SimpleLinearRegression.js +12 -7
  151. package/dist/optimize/SimpleLinearRegression.js.map +1 -0
  152. package/{lib → dist}/optimize/SimplexEntry.d.ts +1 -2
  153. package/{lib → dist}/optimize/SimplexEntry.js +5 -2
  154. package/dist/optimize/SimplexEntry.js.map +1 -0
  155. package/{lib → dist}/orbit_determination/BatchLeastSquaresOD.d.ts +18 -3
  156. package/{lib → dist}/orbit_determination/BatchLeastSquaresOD.js +29 -4
  157. package/dist/orbit_determination/BatchLeastSquaresOD.js.map +1 -0
  158. package/{lib → dist}/orbit_determination/BatchLeastSquaresResult.d.ts +4 -2
  159. package/{lib → dist}/orbit_determination/BatchLeastSquaresResult.js +7 -2
  160. package/dist/orbit_determination/BatchLeastSquaresResult.js.map +1 -0
  161. package/{lib → dist}/orbit_determination/GibbsIOD.d.ts +9 -4
  162. package/{lib → dist}/orbit_determination/GibbsIOD.js +11 -5
  163. package/dist/orbit_determination/GibbsIOD.js.map +1 -0
  164. package/{lib → dist}/orbit_determination/GoodingIOD.d.ts +21 -22
  165. package/{lib → dist}/orbit_determination/GoodingIOD.js +74 -71
  166. package/dist/orbit_determination/GoodingIOD.js.map +1 -0
  167. package/{lib → dist}/orbit_determination/HerrickGibbsIOD.d.ts +4 -4
  168. package/{lib → dist}/orbit_determination/HerrickGibbsIOD.js +3 -2
  169. package/dist/orbit_determination/HerrickGibbsIOD.js.map +1 -0
  170. package/{lib → dist}/orbit_determination/LambertIOD.d.ts +21 -8
  171. package/{lib → dist}/orbit_determination/LambertIOD.js +20 -6
  172. package/dist/orbit_determination/LambertIOD.js.map +1 -0
  173. package/{lib → dist}/orbit_determination/ModifiedGoodingIOD.d.ts +6 -7
  174. package/{lib → dist}/orbit_determination/ModifiedGoodingIOD.js +12 -11
  175. package/dist/orbit_determination/ModifiedGoodingIOD.js.map +1 -0
  176. package/{lib → dist}/propagator/DormandPrince54Propagator.d.ts +1 -2
  177. package/dist/propagator/DormandPrince54Propagator.js +64 -0
  178. package/dist/propagator/DormandPrince54Propagator.js.map +1 -0
  179. package/{lib → dist}/propagator/KeplerPropagator.d.ts +1 -2
  180. package/{lib → dist}/propagator/KeplerPropagator.js +5 -2
  181. package/{lib → dist}/propagator/KeplerPropagator.js.map +1 -1
  182. package/{lib → dist}/propagator/Propagator.d.ts +5 -6
  183. package/{lib → dist}/propagator/Propagator.js +5 -6
  184. package/dist/propagator/Propagator.js.map +1 -0
  185. package/{lib → dist}/propagator/RkCheckpoint.d.ts +1 -2
  186. package/{lib → dist}/propagator/RkCheckpoint.js +3 -2
  187. package/dist/propagator/RkCheckpoint.js.map +1 -0
  188. package/{lib → dist}/propagator/RkResult.d.ts +1 -2
  189. package/{lib → dist}/propagator/RkResult.js +4 -2
  190. package/dist/propagator/RkResult.js.map +1 -0
  191. package/{lib → dist}/propagator/RungeKutta4Propagator.d.ts +14 -10
  192. package/{lib → dist}/propagator/RungeKutta4Propagator.js +45 -36
  193. package/dist/propagator/RungeKutta4Propagator.js.map +1 -0
  194. package/{lib → dist}/propagator/RungeKutta89Propagator.d.ts +1 -2
  195. package/dist/propagator/RungeKutta89Propagator.js +126 -0
  196. package/dist/propagator/RungeKutta89Propagator.js.map +1 -0
  197. package/{lib → dist}/propagator/RungeKuttaAdaptive.d.ts +13 -11
  198. package/{lib → dist}/propagator/RungeKuttaAdaptive.js +31 -24
  199. package/dist/propagator/RungeKuttaAdaptive.js.map +1 -0
  200. package/dist/propagator/Sgp4Propagator.d.ts +76 -0
  201. package/dist/propagator/Sgp4Propagator.js +96 -0
  202. package/dist/propagator/Sgp4Propagator.js.map +1 -0
  203. package/dist/propagator/index.d.ts +3 -0
  204. package/dist/propagator/index.js +4 -0
  205. package/dist/propagator/index.js.map +1 -0
  206. package/{lib → dist}/smoothing/ExponentialSmoothing.d.ts +1 -2
  207. package/{lib → dist}/smoothing/ExponentialSmoothing.js +1 -2
  208. package/dist/smoothing/ExponentialSmoothing.js.map +1 -0
  209. package/dist/transforms/index.d.ts +1 -0
  210. package/dist/transforms/index.js +2 -0
  211. package/dist/transforms/index.js.map +1 -0
  212. package/dist/transforms/transforms.d.ts +57 -0
  213. package/dist/transforms/transforms.js +94 -0
  214. package/dist/transforms/transforms.js.map +1 -0
  215. package/dist/types/types.d.ts +119 -0
  216. package/{lib → dist}/types/types.js +1 -2
  217. package/dist/types/types.js.map +1 -0
  218. package/dist/utils/functions.d.ts +8 -0
  219. package/dist/utils/functions.js +18 -0
  220. package/dist/utils/functions.js.map +1 -0
  221. package/dist/utils/index.d.ts +2 -0
  222. package/dist/utils/index.js +3 -0
  223. package/dist/utils/index.js.map +1 -0
  224. package/dist/utils/jacobian.d.ts +11 -0
  225. package/dist/utils/jacobian.js +29 -0
  226. package/dist/utils/jacobian.js.map +1 -0
  227. package/package.json +31 -42
  228. package/src/coordinate/Hill.ts +326 -0
  229. package/src/coordinate/index.ts +1 -0
  230. package/src/covariance/CovarianceSample.ts +194 -0
  231. package/src/covariance/StateCovariance.ts +69 -0
  232. package/src/enums/CatalogSource.ts +8 -0
  233. package/src/enums/CommLink.ts +7 -0
  234. package/src/enums/index.ts +2 -0
  235. package/src/force/AtmosphericDrag.ts +101 -0
  236. package/src/force/EarthGravity.ts +182 -0
  237. package/{lib/force/EarthGravity.d.ts → src/force/Force.ts} +16 -11
  238. package/src/force/ForceModel.ts +99 -0
  239. package/src/force/Gravity.ts +53 -0
  240. package/src/force/SolarRadiationPressure.ts +42 -0
  241. package/src/force/ThirdBodyGravity.ts +62 -0
  242. package/src/force/Thrust.ts +83 -0
  243. package/src/force/index.ts +1 -0
  244. package/src/interfaces/RfSensorParams.ts +34 -0
  245. package/src/interfaces/index.ts +1 -0
  246. package/src/interpolator/ChebyshevCoefficients.ts +109 -0
  247. package/src/interpolator/ChebyshevInterpolator.ts +87 -0
  248. package/src/interpolator/CubicSpline.ts +72 -0
  249. package/src/interpolator/CubicSplineInterpolator.ts +90 -0
  250. package/src/interpolator/FieldInterpolator.ts +37 -0
  251. package/src/interpolator/Interpolator.ts +56 -0
  252. package/src/interpolator/LagrangeInterpolator.ts +192 -0
  253. package/src/interpolator/StateInterpolator.ts +39 -0
  254. package/src/interpolator/VerletBlendInterpolator.ts +146 -0
  255. package/{lib/ootk.js → src/main.ts} +9 -4
  256. package/src/maneuver/TwoBurnOrbitTransfer.ts +79 -0
  257. package/src/maneuver/Waypoint.ts +267 -0
  258. package/src/objects/DetailedSatellite.ts +186 -0
  259. package/src/objects/DetailedSensor.ts +57 -0
  260. package/src/objects/LandObject.ts +46 -0
  261. package/src/objects/Marker.ts +25 -0
  262. package/src/objects/RfSensor.ts +81 -0
  263. package/src/objects/index.ts +5 -0
  264. package/src/observation/Observation.ts +125 -0
  265. package/src/observation/ObservationOptical.ts +146 -0
  266. package/src/observation/ObservationRadar.ts +131 -0
  267. package/src/observation/ObservationUtils.ts +40 -0
  268. package/src/observation/PropagatorPairs.ts +45 -0
  269. package/src/operations/BoxMuller.ts +87 -0
  270. package/src/operations/EulerAngles.ts +183 -0
  271. package/src/operations/Quaternion.ts +222 -0
  272. package/src/operations/RandomGaussianSource.ts +51 -0
  273. package/src/operations/index.ts +4 -0
  274. package/src/optimize/ChebyshevCompressor.ts +96 -0
  275. package/src/optimize/DownhillSimplex.ts +212 -0
  276. package/src/optimize/GoldenSection.ts +71 -0
  277. package/src/optimize/PolynomialRegression.ts +109 -0
  278. package/src/optimize/PolynomicalRegressionResult.ts +32 -0
  279. package/src/optimize/SimpleLinearRegression.ts +127 -0
  280. package/src/optimize/SimplexEntry.ts +50 -0
  281. package/src/orbit_determination/BatchLeastSquaresOD.ts +174 -0
  282. package/src/orbit_determination/BatchLeastSquaresResult.ts +33 -0
  283. package/src/orbit_determination/GibbsIOD.ts +95 -0
  284. package/src/orbit_determination/GoodingIOD.ts +380 -0
  285. package/src/orbit_determination/HerrickGibbsIOD.ts +51 -0
  286. package/src/orbit_determination/LambertIOD.ts +260 -0
  287. package/src/orbit_determination/ModifiedGoodingIOD.ts +133 -0
  288. package/src/propagator/DormandPrince54Propagator.ts +73 -0
  289. package/src/propagator/KeplerPropagator.ts +102 -0
  290. package/src/propagator/Propagator.ts +253 -0
  291. package/src/propagator/RkCheckpoint.ts +25 -0
  292. package/src/propagator/RkResult.ts +26 -0
  293. package/src/propagator/RungeKutta4Propagator.ts +179 -0
  294. package/src/propagator/RungeKutta89Propagator.ts +132 -0
  295. package/src/propagator/RungeKuttaAdaptive.ts +232 -0
  296. package/src/propagator/Sgp4Propagator.ts +111 -0
  297. package/src/propagator/index.ts +3 -0
  298. package/src/smoothing/ExponentialSmoothing.ts +90 -0
  299. package/src/transforms/index.ts +1 -0
  300. package/src/transforms/transforms.ts +116 -0
  301. package/src/types/types.ts +128 -0
  302. package/src/utils/functions.ts +21 -0
  303. package/src/utils/index.ts +2 -0
  304. package/src/utils/jacobian.ts +38 -0
  305. package/.eslintrc.json +0 -244
  306. package/jest.config.ts +0 -30
  307. package/lib/coordinate/Hill.js.map +0 -1
  308. package/lib/covariance/CovarianceSample.js.map +0 -1
  309. package/lib/covariance/StateCovariance.js.map +0 -1
  310. package/lib/force/AtmosphericDrag.js.map +0 -1
  311. package/lib/force/EarthGravity.js.map +0 -1
  312. package/lib/force/Force.js.map +0 -1
  313. package/lib/force/ForceModel.js.map +0 -1
  314. package/lib/force/Gravity.js.map +0 -1
  315. package/lib/force/SolarRadiationPressure.js.map +0 -1
  316. package/lib/force/ThirdBodyGravity.js.map +0 -1
  317. package/lib/force/Thrust.js.map +0 -1
  318. package/lib/interpolator/ChebyshevCoefficients.js.map +0 -1
  319. package/lib/interpolator/ChebyshevInterpolator.js.map +0 -1
  320. package/lib/interpolator/CubicSpline.js.map +0 -1
  321. package/lib/interpolator/CubicSplineInterpolator.js.map +0 -1
  322. package/lib/interpolator/FieldInterpolator.js.map +0 -1
  323. package/lib/interpolator/Interpolator.js.map +0 -1
  324. package/lib/interpolator/LagrangeInterpolator.js.map +0 -1
  325. package/lib/interpolator/StateInterpolator.js.map +0 -1
  326. package/lib/interpolator/VerletBlendInterpolator.js.map +0 -1
  327. package/lib/maneuver/TwoBurnOrbitTransfer.js.map +0 -1
  328. package/lib/maneuver/Waypoint.js.map +0 -1
  329. package/lib/objects/DetailedSatellite.js +0 -140
  330. package/lib/objects/DetailedSatellite.js.map +0 -1
  331. package/lib/objects/DetailedSensor.js.map +0 -1
  332. package/lib/objects/LandObject.js.map +0 -1
  333. package/lib/objects/Marker.js.map +0 -1
  334. package/lib/objects/index.js.map +0 -1
  335. package/lib/observation/Observation.js.map +0 -1
  336. package/lib/observation/ObservationOptical.js.map +0 -1
  337. package/lib/observation/ObservationRadar.js.map +0 -1
  338. package/lib/observation/ObservationUtils.js.map +0 -1
  339. package/lib/observation/PropagatorPairs.js.map +0 -1
  340. package/lib/ootk.js.map +0 -1
  341. package/lib/operations/BoxMuller.js.map +0 -1
  342. package/lib/operations/EulerAngles.d.ts +0 -50
  343. package/lib/operations/EulerAngles.js.map +0 -1
  344. package/lib/operations/Quaternion.js.map +0 -1
  345. package/lib/operations/RandomGaussianSource.js.map +0 -1
  346. package/lib/optimize/ChebyshevCompressor.js.map +0 -1
  347. package/lib/optimize/DownhillSimplex.js.map +0 -1
  348. package/lib/optimize/GoldenSection.js.map +0 -1
  349. package/lib/optimize/PolynomialRegression.js.map +0 -1
  350. package/lib/optimize/PolynomicalRegressionResult.js.map +0 -1
  351. package/lib/optimize/SimpleLinearRegression.js.map +0 -1
  352. package/lib/optimize/SimplexEntry.js.map +0 -1
  353. package/lib/orbit_determination/BatchLeastSquaresOD.js.map +0 -1
  354. package/lib/orbit_determination/BatchLeastSquaresResult.js.map +0 -1
  355. package/lib/orbit_determination/GibbsIOD.js.map +0 -1
  356. package/lib/orbit_determination/GoodingIOD.js.map +0 -1
  357. package/lib/orbit_determination/HerrickGibbsIOD.js.map +0 -1
  358. package/lib/orbit_determination/LambertIOD.js.map +0 -1
  359. package/lib/orbit_determination/ModifiedGoodingIOD.js.map +0 -1
  360. package/lib/propagator/DormandPrince54Propagator.js +0 -68
  361. package/lib/propagator/DormandPrince54Propagator.js.map +0 -1
  362. package/lib/propagator/Propagator.js.map +0 -1
  363. package/lib/propagator/RkCheckpoint.js.map +0 -1
  364. package/lib/propagator/RkResult.js.map +0 -1
  365. package/lib/propagator/RungeKutta4Propagator.js.map +0 -1
  366. package/lib/propagator/RungeKutta89Propagator.js +0 -130
  367. package/lib/propagator/RungeKutta89Propagator.js.map +0 -1
  368. package/lib/propagator/RungeKuttaAdaptive.js.map +0 -1
  369. package/lib/propagator/Sgp4Propagator.d.ts +0 -35
  370. package/lib/propagator/Sgp4Propagator.js +0 -55
  371. package/lib/propagator/Sgp4Propagator.js.map +0 -1
  372. package/lib/smoothing/ExponentialSmoothing.js.map +0 -1
  373. package/lib/types/types.d.ts +0 -86
  374. package/lib/types/types.js.map +0 -1
  375. /package/{lib → dist}/coordinate/index.d.ts +0 -0
  376. /package/{lib → dist}/coordinate/index.js +0 -0
  377. /package/{lib → dist}/coordinate/index.js.map +0 -0
  378. /package/{lib → dist}/operations/index.d.ts +0 -0
  379. /package/{lib → dist}/operations/index.js +0 -0
  380. /package/{lib → dist}/operations/index.js.map +0 -0
package/CHANGELOG.md CHANGED
@@ -1,42 +1,156 @@
1
1
  ### Changelog
2
2
 
3
- All notable changes to this project will be documented in this file. Dates are displayed in UTC.
3
+ This is an automatic changelog that automatically records all changes made to the project. Generated from Git commit
4
+ messages, it details updates like bug fixes and new features, providing a clear history of the project's development.
4
5
 
5
- Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
+ #### [4.0.0-10](https://github.com/thkruz/ootk/compare/v5.0.0-0...4.0.0-10)
7
+
8
+ - refactor: :recycle: make rfSensor an extension of DetailedSensor [`add7613`](https://github.com/thkruz/ootk/commit/add7613c9cea3ddf56b5da0accef36b8b866b144)
9
+
10
+ #### [v5.0.0-0](https://github.com/thkruz/ootk/compare/v4.0.0-9...v5.0.0-0)
11
+
12
+ #### [v4.0.0-9](https://github.com/thkruz/ootk/compare/v4.0.0-8...v4.0.0-9)
13
+
14
+ > 19 February 2024
15
+
16
+ - feat: :sparkles: add forces and propagators [`177c88b`](https://github.com/thkruz/ootk/commit/177c88b308760c08e592d409f106cbfe2b0b98ac)
17
+ - docs: :memo: update documentation [`754e2e1`](https://github.com/thkruz/ootk/commit/754e2e183fdb6930a0192b0452137f99f420fd6d)
18
+ - feat: :sparkles: add detailedsatellite cloning [`63aeb77`](https://github.com/thkruz/ootk/commit/63aeb77d3d24071a1d66e5396b27e8c89fe34198)
19
+ - build: :arrow_up: bump ootk-core [`62f40d2`](https://github.com/thkruz/ootk/commit/62f40d2e8fd629b7dfc55b2c40e52e40cf2069aa)
20
+ - build: :arrow_up: bump ootk-core [`8d15b97`](https://github.com/thkruz/ootk/commit/8d15b972d7a9dd49a6c2e2773509ac23735da476)
21
+ - chore: :technologist: remove prettier recommendation [`def01c6`](https://github.com/thkruz/ootk/commit/def01c647b3a09c799b1c2b47c766afed4368ab3)
22
+
23
+ #### [v4.0.0-8](https://github.com/thkruz/ootk/compare/v4.0.0-7...v4.0.0-8)
24
+
25
+ > 21 January 2024
26
+
27
+ - fix: :bug: make vmag and rcs nullable [`0750c9a`](https://github.com/thkruz/ootk/commit/0750c9aebee45bf0cba773b7d09ad91b3d29dbd7)
28
+
29
+ #### [v4.0.0-7](https://github.com/thkruz/ootk/compare/v4.0.0-6...v4.0.0-7)
30
+
31
+ > 21 January 2024
32
+
33
+ - build: :arrow_up: bump ootk-core [`188513f`](https://github.com/thkruz/ootk/commit/188513fabd9a1f621547769b9624c0dfcddee59d)
34
+
35
+ #### [v4.0.0-6](https://github.com/thkruz/ootk/compare/v4.0.0-5...v4.0.0-6)
36
+
37
+ > 20 January 2024
38
+
39
+ - build: :arrow_up: bump ootk-core [`c7c5350`](https://github.com/thkruz/ootk/commit/c7c5350d47d20ffb5453ccfcb490164a00b50a9e)
40
+
41
+ #### [v4.0.0-5](https://github.com/thkruz/ootk/compare/v4.0.0-4...v4.0.0-5)
42
+
43
+ > 20 January 2024
44
+
45
+ - build: :arrow_up: bump ootk-core [`d19fd5b`](https://github.com/thkruz/ootk/commit/d19fd5b80b7b223a91c56a64b9564350cd9a90d0)
46
+
47
+ #### [v4.0.0-4](https://github.com/thkruz/ootk/compare/v4.0.0-3...v4.0.0-4)
48
+
49
+ > 17 January 2024
50
+
51
+ - fix: :adhesive_bandage: fix import statements [`e923dde`](https://github.com/thkruz/ootk/commit/e923ddefe856711c8216e006dc7463827960900e)
52
+
53
+ #### [v4.0.0-3](https://github.com/thkruz/ootk/compare/v4.0.0-2...v4.0.0-3)
54
+
55
+ > 17 January 2024
56
+
57
+ - fix: :bug: fix Vimpel TLEs [`6092a4b`](https://github.com/thkruz/ootk/commit/6092a4b411c1092ee75ed6c34eee499cfa3cefef)
58
+ - fix: :bug: fix enum [`009342f`](https://github.com/thkruz/ootk/commit/009342f15e9f03de98e477c3c7ce1ef7534caa2d)
59
+
60
+ #### [v4.0.0-2](https://github.com/thkruz/ootk/compare/v4.0.0-1...v4.0.0-2)
61
+
62
+ > 17 January 2024
63
+
64
+ - refactor: :recycle: move derivative from ootk-core [`9a9b50d`](https://github.com/thkruz/ootk/commit/9a9b50d4402b24398d920ae4ef0a76a7d19edabf)
65
+ - build: :arrow_up: bump ootk-core [`efc4aa0`](https://github.com/thkruz/ootk/commit/efc4aa0caf7182afd9fbba7e29a50a8defd16ebe)
66
+ - test: :white_check_mark: update snapshots [`ca95ad6`](https://github.com/thkruz/ootk/commit/ca95ad65be2de3f818390585a7bc1749ca7bf918)
67
+
68
+ #### [v4.0.0-1](https://github.com/thkruz/ootk/compare/v4.0.0-0...v4.0.0-1)
69
+
70
+ > 17 January 2024
71
+
72
+ - feat: :sparkles: integrate ootk-core v1.0.7 [`101eeb6`](https://github.com/thkruz/ootk/commit/101eeb6a21008ce198832818154fa0442691e4ad)
73
+ - refactor: :recycle: refactor to match latest ootk-core [`ae37922`](https://github.com/thkruz/ootk/commit/ae3792283571c69ff0d6406188d0c7219215c56f)
74
+ - docs: :page_facing_up: add license to all major files [`8549064`](https://github.com/thkruz/ootk/commit/8549064fe77001e2501f13d67588cbc0dfd490cb)
75
+ - ci: :construction_worker: update github ci/cd pipeline [`670b252`](https://github.com/thkruz/ootk/commit/670b2526669dbb4478499d6587b4dc729c373745)
76
+ - fix: :rotating_light: fix linter errors [`195c5eb`](https://github.com/thkruz/ootk/commit/195c5eb8ebfa68221241d7ceabc6522b8f12bd1b)
77
+ - fix: :bug: cleanup integration with ootk-core [`227169e`](https://github.com/thkruz/ootk/commit/227169e3f4191a9f3cf3c58c50d645274e8e1120)
78
+ - test: :white_check_mark: fix test config [`5e5a673`](https://github.com/thkruz/ootk/commit/5e5a6730b67a9b4c448ccc970c80b06c446515d8)
79
+ - fix: :bug: fix imports [`de5459d`](https://github.com/thkruz/ootk/commit/de5459dd9c69afcd08b3002af87d661ccdb47bde)
6
80
 
7
81
  #### [v4.0.0-0](https://github.com/thkruz/ootk/compare/v1.8.1...v4.0.0-0)
8
82
 
83
+ > 7 January 2024
84
+
9
85
  - feat: :truck: split ootk-core functions into new library [`d4982be`](https://github.com/thkruz/ootk/commit/d4982be23ec1318f1e2de6a8ecf7f7fa92594069)
10
86
  - feat: :sparkles: port functions from pious_squid [`69aaf26`](https://github.com/thkruz/ootk/commit/69aaf26d4d8c99912cc5bf0f1c9ad6e0674b15eb)
11
87
  - fix: :label: add strict typing for units [`ff98aa0`](https://github.com/thkruz/ootk/commit/ff98aa09158e2da75ab2f2942639f18f09de21aa)
88
+ - refactor: :label: update docs and typing [`92e14a1`](https://github.com/thkruz/ootk/commit/92e14a1ea0c708d7bd91d3a25a0da48d73859ed3)
89
+ - feat: :sparkles: merge sun calculations [`7f4146e`](https://github.com/thkruz/ootk/commit/7f4146e2d67793806f2f3e6b69183bff65a41b05)
90
+ - feat: :sparkles: update transforms [`c6824a4`](https://github.com/thkruz/ootk/commit/c6824a4f22aab24b5e30a5a733e8af4b42d85ae0)
91
+ - feat: :sparkles: integration with KeepTrack [`a8cc11d`](https://github.com/thkruz/ootk/commit/a8cc11df0b648e99ec10baaff03ba83addc6f47f)
92
+ - fix: :bug: validate against keeptrack [`702307c`](https://github.com/thkruz/ootk/commit/702307c31deb501d1b0ba3d0c656b7406baed80a)
93
+ - refactor: :recycle: refactor with better typing and _ suffix for private methods [`4b14b64`](https://github.com/thkruz/ootk/commit/4b14b64290ffe71ed8fbaebd20ca16e8abf2ce4e)
94
+ - docs: :label: expand documentation of types [`a517a24`](https://github.com/thkruz/ootk/commit/a517a242f4b35d5a5795ce9032d7672219b0bd1f)
95
+ - fix: :bug: fix Satellite class [`20bc194`](https://github.com/thkruz/ootk/commit/20bc19434f97e101c7f555774859a970db1cebd7)
96
+ - test: :white_check_mark: add more testing to sensor [`2bef00d`](https://github.com/thkruz/ootk/commit/2bef00d172d23de2a8b5aae73ea385880ac58fb2)
97
+ - fix: :bug: fix degrees vs radians issues [`6103597`](https://github.com/thkruz/ootk/commit/61035971e037483cc62f01cf08c397085c746694)
98
+ - refactor: :recycle: refactor common celestial equations out of sun and moon [`7f65165`](https://github.com/thkruz/ootk/commit/7f6516525b90019b31520525a9d2adf643ad3fd0)
99
+ - feat: :sparkles: add transforms for radar coordinate systems [`c836753`](https://github.com/thkruz/ootk/commit/c8367533788760ce2189795ac370812d9377a75a)
100
+ - test: :bug: fix broken tests [`735e480`](https://github.com/thkruz/ootk/commit/735e480627f85f2dfa7de1bcc8ece32032ad5fd5)
101
+ - test: :construction_worker: update jest and ts configs [`039b195`](https://github.com/thkruz/ootk/commit/039b195b4c63185345936b47fa57937b4ec458e3)
102
+ - refactor: :recycle: reduce complexity [`de70bda`](https://github.com/thkruz/ootk/commit/de70bda0eefb0bb02bf1e55e81781ee81df80358)
103
+ - test: :white_check_mark: add more tests [`27ed272`](https://github.com/thkruz/ootk/commit/27ed27265e35d4575b2e2bb12f50ca8b187f0d96)
104
+ - build: :package: update package scripts and dependencies [`a4efe23`](https://github.com/thkruz/ootk/commit/a4efe2384b53b1c5d6c95e4a6bea2d585048832c)
105
+ - feat: :sparkles: add new functions to the sat object [`475df09`](https://github.com/thkruz/ootk/commit/475df09182a09c94497261c35f7904f5810cd2a9)
106
+ - chore: :fire: remove old files [`797007c`](https://github.com/thkruz/ootk/commit/797007c2c0a89e86c90d964e3a6fc699705c31cd)
107
+ - chore: :rotating_light: fix minor linter errors [`1682292`](https://github.com/thkruz/ootk/commit/16822921b96a24f477789b19b02a5363a93f94fb)
108
+ - build: :construction_worker: update babel config [`f028e5e`](https://github.com/thkruz/ootk/commit/f028e5ee7b839414fd4d785bb6a04e93619afcb6)
109
+ - fix: :label: fix incorrect units [`d790d63`](https://github.com/thkruz/ootk/commit/d790d63f3502f9a5b0c793f88ff7cc48d252717d)
110
+ - refactor: :label: improved type checking [`7e30df4`](https://github.com/thkruz/ootk/commit/7e30df4f2c481b84ee1843c453af4124988bcfea)
111
+ - chore: :art: update prettier config [`6a816c9`](https://github.com/thkruz/ootk/commit/6a816c905b1ec250053ff77ea0e2c88d96233836)
112
+ - refactor: :green_heart: improve build [`0f4f74c`](https://github.com/thkruz/ootk/commit/0f4f74cc0daa8453317039936a35d9238c6c6a07)
113
+ - fix: :label: mark parameters optional per @weedgrease suggestion [`48cb0de`](https://github.com/thkruz/ootk/commit/48cb0dea834229ec56155d4f2e69ef1c87ed908e)
114
+ - docs: :package: update package.json [`b49eddc`](https://github.com/thkruz/ootk/commit/b49eddcc60d0635a1a6f3c13e28aa5a2ae2cf4c3)
115
+ - feat: :hammer: add dev script for opening lcov [`1d034da`](https://github.com/thkruz/ootk/commit/1d034daa28b713370855482c6a75317921fe6550)
116
+ - chore: :rotating_light: update eslint config [`b90e585`](https://github.com/thkruz/ootk/commit/b90e58529144fb34db52a0b085cd2dbc9369d6d1)
117
+ - refactor: :lock: update dependencies [`a0ce1d5`](https://github.com/thkruz/ootk/commit/a0ce1d5ff296fb3aa728277cd2fee47a355fd250)
118
+ - build: :bug: fix jest dependencies [`96792e9`](https://github.com/thkruz/ootk/commit/96792e9a9d90c08c23bb81e10beefcc083ae658e)
119
+ - refactor: :rotating_light: hide wasm work [`a372498`](https://github.com/thkruz/ootk/commit/a372498ea1861edf046eee488149b1cfdb2761ac)
120
+ - fix: :bug: fix bug in how alpha 5 was calculated [`c36cd0c`](https://github.com/thkruz/ootk/commit/c36cd0c6899f4858514f69aeff5095692d812d85)
121
+ - refactor: :label: update return type [`1e841de`](https://github.com/thkruz/ootk/commit/1e841de543153aa5a0f7de936c8aaf1c03f65580)
122
+ - feat: :label: use generics [`2c3a843`](https://github.com/thkruz/ootk/commit/2c3a8435cd14eb43d2ff5ac430b85a516b899b66)
123
+ - fix: :bug: fix rng vs range usage [`a9917c3`](https://github.com/thkruz/ootk/commit/a9917c3d5314332710f5153762b0fd2b1c49c433)
124
+ - refactor: :rotating_light: fix linter error on enum [`097e50b`](https://github.com/thkruz/ootk/commit/097e50b85779feb20671e5725c0b6df437694a22)
125
+ - refactor: :fire: remove assemblyscript references [`9c5a87d`](https://github.com/thkruz/ootk/commit/9c5a87d2455d06f0d36b87ecd31aa644e1d7ab62)
12
126
 
13
127
  #### [v1.8.1](https://github.com/thkruz/ootk/compare/v1.8.0...v1.8.1)
14
128
 
15
- > 24 August 2022
129
+ > 24 August 2022
16
130
 
17
131
  - fix: :ambulance: fix radians vs degrees in sensor.ts [`d69200f`](https://github.com/thkruz/ootk/commit/d69200ff86beb932235f11fa0fbd86f6b9401ecc)
18
132
 
19
133
  #### [v1.8.0](https://github.com/thkruz/ootk/compare/v1.7.0...v1.8.0)
20
134
 
21
- > 24 August 2022
135
+ > 24 August 2022
22
136
 
23
137
  - feat: :sparkles: add getDayOfYear functionality [`46ffa20`](https://github.com/thkruz/ootk/commit/46ffa20e22478a2e1780276fe96321c32aa66a85)
24
138
 
25
139
  #### [v1.7.0](https://github.com/thkruz/ootk/compare/v1.6.4...v1.7.0)
26
140
 
27
- > 23 August 2022
141
+ > 23 August 2022
28
142
 
29
143
  - feat: :sparkles: add fov functions to sensor [`90d0d2e`](https://github.com/thkruz/ootk/commit/90d0d2ea20d3796f285d680eac8851fc829cc73a)
30
144
 
31
145
  #### [v1.6.4](https://github.com/thkruz/ootk/compare/v1.6.3...v1.6.4)
32
146
 
33
- > 22 August 2022
147
+ > 22 August 2022
34
148
 
35
149
  - docs: :label: fix type label for RaeVec3 [`df0d9dd`](https://github.com/thkruz/ootk/commit/df0d9dd577302b0c57f285ce650a77b325314080)
36
150
 
37
151
  #### [v1.6.3](https://github.com/thkruz/ootk/compare/v1.6.2...v1.6.3)
38
152
 
39
- > 22 August 2022
153
+ > 13 February 2021
40
154
 
41
155
  - Develop [`#22`](https://github.com/thkruz/ootk/pull/22)
42
156
  - Develop [`#21`](https://github.com/thkruz/ootk/pull/21)
@@ -47,106 +161,108 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
47
161
 
48
162
  #### [v1.6.2](https://github.com/thkruz/ootk/compare/v1.6.1...v1.6.2)
49
163
 
50
- > 22 August 2022
164
+ > 22 August 2022
51
165
 
52
166
  - fix: :pencil2: fix typo in sez2rae [`509bf07`](https://github.com/thkruz/ootk/commit/509bf0754ef4e5e50a4aa4571af178ffd219ba6b)
53
167
 
54
168
  #### [v1.6.1](https://github.com/thkruz/ootk/compare/v1.6.0...v1.6.1)
55
169
 
56
- > 22 August 2022
170
+ > 12 August 2022
57
171
 
58
172
  - docs: :memo: update readme with examples [`4434dd7`](https://github.com/thkruz/ootk/commit/4434dd72c9369e71ef07deaed0370071e23743a2)
59
173
  - fix: :bug: fix sez2rae returning radians not degrees [`429bab4`](https://github.com/thkruz/ootk/commit/429bab41dd75a659614bbfe229bf6e4c72921c41)
60
174
 
61
175
  #### [v1.6.0](https://github.com/thkruz/ootk/compare/v1.5.5...v1.6.0)
62
176
 
63
- > 12 August 2022
177
+ > 12 August 2022
64
178
 
65
179
  - test: :camera_flash: add snapshots of correct position/velocity calculations [`bdf6aa5`](https://github.com/thkruz/ootk/commit/bdf6aa59eff77fa7891719c5283c220d2cf83b6c)
66
180
  - test: :white_check_mark: add test catalog and test creator [`e785e78`](https://github.com/thkruz/ootk/commit/e785e780c9156482aa6eb8a979885ec6f7ad23ac)
67
181
  - test: :white_check_mark: add full catalog validation tests [`97cb4c1`](https://github.com/thkruz/ootk/commit/97cb4c1caa9933d206b3807da381c0b83c4fa5ae)
182
+ - test: :white_check_mark: add testing from sgp4prop [`de1d87f`](https://github.com/thkruz/ootk/commit/de1d87f3ecb687f1be295545381bb8bfdf195bbe)
183
+ - chore: :coffin: remove non-public tests [`c1af668`](https://github.com/thkruz/ootk/commit/c1af66821e9058605e003676292ec7d66e33749e)
184
+ - refactor: :label: fix types for moon-math.ts [`41bd18c`](https://github.com/thkruz/ootk/commit/41bd18c04fac9dae9f631b1e391b2deef4df258d)
185
+ - docs: :test_tube: add example of bad TLEs [`f2bc0b9`](https://github.com/thkruz/ootk/commit/f2bc0b989d04604f0c1252de2e43e99b462458d9)
68
186
 
69
187
  #### [v1.5.5](https://github.com/thkruz/ootk/compare/v1.5.4...v1.5.5)
70
188
 
71
- > 8 August 2022
189
+ > 8 August 2022
72
190
 
73
191
  - fix: :pencil2: fix bug with h vs el [`9affaaf`](https://github.com/thkruz/ootk/commit/9affaafcd35b34c5765161966fdeb06e51182c81)
74
192
 
75
193
  #### [v1.5.4](https://github.com/thkruz/ootk/compare/v1.5.3...v1.5.4)
76
194
 
77
- > 8 August 2022
195
+ > 8 August 2022
78
196
 
79
197
  - fix: :bug: correct bug in deep space math [`c7ec9ca`](https://github.com/thkruz/ootk/commit/c7ec9ca017b2ebe0ce41af1c9e7934794e19da3e)
80
198
 
81
199
  #### [v1.5.3](https://github.com/thkruz/ootk/compare/v1.5.2...v1.5.3)
82
200
 
83
- > 6 August 2022
84
-
85
201
  #### [v1.5.2](https://github.com/thkruz/ootk/compare/v1.5.1...v1.5.2)
86
202
 
87
- > 6 August 2022
203
+ > 6 August 2022
88
204
 
89
205
  - fix: :bug: fix math for getStarAzEl [`0a0ee9a`](https://github.com/thkruz/ootk/commit/0a0ee9a10dfc9a278e20051b71e2dcd625b49e8a)
90
206
 
91
207
  #### [v1.5.1](https://github.com/thkruz/ootk/compare/v1.5.0...v1.5.1)
92
208
 
93
- > 6 August 2022
209
+ > 6 August 2022
94
210
 
95
211
  - build: :label: update build script to include all type data [`ce752f9`](https://github.com/thkruz/ootk/commit/ce752f9edb4ebba3ca65588611cb109d990c3270)
96
212
 
97
213
  #### [v1.5.0](https://github.com/thkruz/ootk/compare/v1.4.0...v1.5.0)
98
214
 
99
- > 29 July 2022
215
+ > 29 July 2022
100
216
 
101
217
  - fix: :bug: fix issues with jday calculations in Sgp4 [`7ceb301`](https://github.com/thkruz/ootk/commit/7ceb301b2a7c23d9d6439f4f1e1b801dbacd468c)
102
218
  - fix: :bug: fix bug with timezone differences [`d796c65`](https://github.com/thkruz/ootk/commit/d796c65ad052c975808b05d3d356537405342b71)
103
219
 
104
220
  #### [v1.4.0](https://github.com/thkruz/ootk/compare/v1.3.1...v1.4.0)
105
221
 
106
- > 28 July 2022
222
+ > 28 July 2022
107
223
 
108
224
  - feat: :sparkles: [`e83c0fc`](https://github.com/thkruz/ootk/commit/e83c0fc6083e37ddee0beb3668dd0a7469a69dce)
109
225
 
110
226
  #### [v1.3.1](https://github.com/thkruz/ootk/compare/v1.3.0...v1.3.1)
111
227
 
112
- > 27 July 2022
228
+ > 27 July 2022
113
229
 
114
230
  - feat: :sparkles: add getSolarTime [`a812450`](https://github.com/thkruz/ootk/commit/a812450d3bc335e168fc9a2a04630a3ae754316d)
115
231
 
116
232
  #### [v1.3.0](https://github.com/thkruz/ootk/compare/v1.2.0...v1.3.0)
117
233
 
118
- > 27 July 2022
234
+ > 27 July 2022
119
235
 
120
236
  - feat: :sparkles: add space objects, sunMath, and moonMath [`e7e9fc3`](https://github.com/thkruz/ootk/commit/e7e9fc390f46e1aaedd47595d7fc0ad9e228b6e9)
121
237
 
122
238
  #### [v1.2.0](https://github.com/thkruz/ootk/compare/v1.1.0...v1.2.0)
123
239
 
124
- > 25 July 2022
240
+ > 26 July 2022
125
241
 
126
242
  - feat: :sparkles: add Sat class [`281a9c5`](https://github.com/thkruz/ootk/commit/281a9c57ecaf9472cf305eb5f5d3ab8fe5f39e7b)
127
243
  - docs: :memo: update changelog [`19b70f8`](https://github.com/thkruz/ootk/commit/19b70f80fb0e5c963f47dccbcf0c5d9451133121)
128
244
 
129
245
  #### [v1.1.0](https://github.com/thkruz/ootk/compare/v1.0.8...v1.1.0)
130
246
 
131
- > 25 July 2022
247
+ > 26 July 2022
132
248
 
133
249
  - feat: :sparkles: add TLE parsing utility [`e9acd7c`](https://github.com/thkruz/ootk/commit/e9acd7cda738ef501733808b011d4496bddf05cf)
134
250
 
135
251
  #### [v1.0.8](https://github.com/thkruz/ootk/compare/v1.0.7...v1.0.8)
136
252
 
137
- > 20 July 2022
253
+ > 20 July 2022
138
254
 
139
255
  - refactor: :label: export types [`12ce662`](https://github.com/thkruz/ootk/commit/12ce66207406330a27fe3791effd7660ef61349b)
140
256
 
141
257
  #### [v1.0.7](https://github.com/thkruz/ootk/compare/v1.0.6...v1.0.7)
142
258
 
143
- > 20 July 2022
259
+ > 20 July 2022
144
260
 
145
261
  - build: :label: include type definition in dist folder [`4114ccd`](https://github.com/thkruz/ootk/commit/4114ccdabe4b1c7d957d017179d7700129643f83)
146
262
 
147
263
  #### [v1.0.6](https://github.com/thkruz/ootk/compare/v1.0.4...v1.0.6)
148
264
 
149
- > 20 July 2022
265
+ > 20 July 2022
150
266
 
151
267
  - build(umd.js): renamed es modules to be .es.js files [`#17`](https://github.com/thkruz/ootk/pull/17)
152
268
  - Rebase [`#16`](https://github.com/thkruz/ootk/pull/16)
@@ -155,10 +271,24 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
155
271
  - refactor: :recycle: consolidate constants and types [`69032ad`](https://github.com/thkruz/ootk/commit/69032adcde7c013b069dc4d58bdb2c88af45d4b5)
156
272
  - fix(ootk-sgp4): moved variables to local scope for speed vs reduced garbage collection [`5f41d12`](https://github.com/thkruz/ootk/commit/5f41d125c19d217e28a4278041549e5a6d51368b)
157
273
  - refactor: :recycle: code cleanup [`6d9cc64`](https://github.com/thkruz/ootk/commit/6d9cc649d5c3e4787fdf8e61ccc7192a79ca5d9e)
274
+ - test: :white_check_mark: improve test coverage [`bfe4f9f`](https://github.com/thkruz/ootk/commit/bfe4f9f093905aab8204667d7917b32684bfb9d1)
275
+ - feat(ootk-multi): added multithreading class [`774ec62`](https://github.com/thkruz/ootk/commit/774ec62adf67267c2c58d9a4bc275ed806499595)
276
+ - refactor: :recycle: use const more often [`27d23e0`](https://github.com/thkruz/ootk/commit/27d23e0791c3dffedd6faca6153ea898504c5331)
277
+ - ci: :construction_worker: update ci [`9698423`](https://github.com/thkruz/ootk/commit/96984235de22486c569a29aae7eaa7ff8ecfbf09)
278
+ - refactor: :rotating_light: fix linter errors [`b85a4b8`](https://github.com/thkruz/ootk/commit/b85a4b85b6f5128a6f13283e24c70376b2f048eb)
279
+ - test(multi.test.js): increased testing coverage of multi module [`e258121`](https://github.com/thkruz/ootk/commit/e2581219d376add019d82dbf8f6b73299b668077)
280
+ - fix(ootk-sgp4): moved constants to local scope for speed increase despite memory usage [`11b8c72`](https://github.com/thkruz/ootk/commit/11b8c72e94c1f83259f5db5e966448f091c84f85)
281
+ - fix(ootk-multi): improved multithreading algorithm to reduce garbage collection and variable cloning [`f9e5d63`](https://github.com/thkruz/ootk/commit/f9e5d6353ed091f232d885be4546afdca816c3d1)
282
+ - ci: :construction_worker: remove useless failing ci test [`b559e16`](https://github.com/thkruz/ootk/commit/b559e16cfe236a0dc93ab3cffcae0506d0efaa2d)
283
+ - docs: :memo: update changelog [`2b021f6`](https://github.com/thkruz/ootk/commit/2b021f6bedd1953d40d6b0d6a48442c12c406831)
284
+ - test(tests): updated references to .es.js files [`0d2fec2`](https://github.com/thkruz/ootk/commit/0d2fec262776b511d3b5f0e9f756456329f9a590)
285
+ - ci: :construction_worker: use node 17 in ci [`383d55d`](https://github.com/thkruz/ootk/commit/383d55d44a2cdec5808d32dbc57241035572a0b0)
286
+ - feat(ootk-utils): added createVec method [`0c87700`](https://github.com/thkruz/ootk/commit/0c87700bdf15aaab33e7ca4b44b6b885cd545530)
287
+ - ci: :pencil2: fix typo in ci script [`841ae40`](https://github.com/thkruz/ootk/commit/841ae40a41a8a55ab3d10adc8c5b76f38157121b)
158
288
 
159
289
  #### [v1.0.4](https://github.com/thkruz/ootk/compare/v1.0.0...v1.0.4)
160
290
 
161
- > 13 January 2021
291
+ > 13 January 2021
162
292
 
163
293
  - build(tsconfig.json): enabled sourceMap [`#13`](https://github.com/thkruz/ootk/pull/13)
164
294
  - Develop [`#12`](https://github.com/thkruz/ootk/pull/12)
@@ -167,10 +297,25 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
167
297
  - Update issue templates [`039baa7`](https://github.com/thkruz/ootk/commit/039baa7f361869691343dd9522102e596c2ef2b4)
168
298
  - ci(ootk): renamed all .es.js files to .js [`d20e7a9`](https://github.com/thkruz/ootk/commit/d20e7a96bd962df2c14dbba499b8c32ee703a036)
169
299
  - build(umd.js): changed globalObject to this instead of self for Node [`6f79359`](https://github.com/thkruz/ootk/commit/6f793590de90b7e9b32ff2bb0b2aa52a244623c1)
170
-
171
- #### [v1.0.0](https://github.com/thkruz/ootk/compare/v1.0.0-alpha1...v1.0.0)
172
-
173
- > 13 January 2021
300
+ - ci(codecov.yml): added codecov.yml to fix missing code coverage on .es.js files [`821a1bf`](https://github.com/thkruz/ootk/commit/821a1bf7cfaaa3d9d538d2622f9c6fe0e07e9219)
301
+ - Update issue templates [`6629196`](https://github.com/thkruz/ootk/commit/662919646cf4ba988139180ce648dee120d36c02)
302
+ - Update issue templates [`9650aac`](https://github.com/thkruz/ootk/commit/9650aac33fcb7c7ee8e8a08a9d6a14dafd7b628f)
303
+ - Update README.md [`b774337`](https://github.com/thkruz/ootk/commit/b774337f31ad9bb60a4f49a8b87282c2c48c944e)
304
+ - build(.npmignore): added npmignore to provide a cleaner package on npm [`8d3ebf2`](https://github.com/thkruz/ootk/commit/8d3ebf2b3d0955edf547e87eeca6b895988d1495)
305
+ - ci(ci.yml): fixed node support issue by referenceing dist instead of lib [`faa6e7b`](https://github.com/thkruz/ootk/commit/faa6e7bddddffcd0e02ad08b819d4d14e6684fa8)
306
+ - build(umd.js): converted import to ES6 module [`56972d3`](https://github.com/thkruz/ootk/commit/56972d3f1af32b956c75820c2a99e14d0bb99b6f)
307
+ - build(cleanup.js): fixed rimraf [`510ee61`](https://github.com/thkruz/ootk/commit/510ee61a39fae0c3cb244b7a04cc7fd630463e28)
308
+ - Update README.md [`b7846a2`](https://github.com/thkruz/ootk/commit/b7846a2a0ff37f146bd77f643841fda9a9bace79)
309
+ - docs(readme): fixed incorrect import statement [`70e4fe6`](https://github.com/thkruz/ootk/commit/70e4fe6efc961ab1d069ec5a8627492d614947ab)
310
+ - ci(ci.yml): fixed spacing error on line 84 [`08c4a97`](https://github.com/thkruz/ootk/commit/08c4a976faa386f6bb0c4fca04197b5b765e8759)
311
+ - docs(readme): fixed grammar in readme file [`cd819e8`](https://github.com/thkruz/ootk/commit/cd819e853698af689a11896b9413835847ac41fe)
312
+ - build(package.json): fixed main entry to point to correct file [`62d83a4`](https://github.com/thkruz/ootk/commit/62d83a408df117589cf45b33e9d5db0a41b0cd65)
313
+ - docs(readme): fixed link to old library name [`5ba9f84`](https://github.com/thkruz/ootk/commit/5ba9f846a9c4128d235ab223cddf8f3abc442a9b)
314
+ - build(package.json): fixed node compatibility [`8c03b7e`](https://github.com/thkruz/ootk/commit/8c03b7ec111aee9291086b2aed3951bc41b084c1)
315
+
316
+ ### [v1.0.0](https://github.com/thkruz/ootk/compare/v1.0.0-alpha1...v1.0.0)
317
+
318
+ > 13 January 2021
174
319
 
175
320
  - docs(readme): added build size to the readme [`#5`](https://github.com/thkruz/ootk/pull/5)
176
321
  - Develop [`#4`](https://github.com/thkruz/ootk/pull/4)
@@ -179,12 +324,34 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
179
324
  - feat(ootk-transforms): added Transforms and Utils modules [`122ed43`](https://github.com/thkruz/ootk/commit/122ed43146acdda835c345529c0b5ce7c315bf10)
180
325
  - refactor(ootk-transforms): sorted functions by name [`98a8059`](https://github.com/thkruz/ootk/commit/98a8059a2fffe8e8d984b94ed6ae064753956060)
181
326
  - docs(readme): updated readme notes [`31913d0`](https://github.com/thkruz/ootk/commit/31913d0be0c2a63f6ed5aa6f1aa7ddfc249add8c)
327
+ - build(umd.js): changed libary to Ootk in umd scripts to be consistent among classes [`e85a8c2`](https://github.com/thkruz/ootk/commit/e85a8c2b45c1d159b516ee18a43ec68f5362bdec)
328
+ - ci(ci.yml): removed cached ouput between jobs [`e74aa71`](https://github.com/thkruz/ootk/commit/e74aa71fe3748e5a6ec0603c22c809e012450bbf)
329
+ - chore(jest-std.json): fixed moduleNameMapper [`618a853`](https://github.com/thkruz/ootk/commit/618a8533f678ff713f6f01c3ac794cf4f4da5d94)
330
+ - build(umd.js): included utils module in umd creation [`84682ac`](https://github.com/thkruz/ootk/commit/84682ac006882f7f4c1a4abfa4873e30f82e2ae8)
331
+ - build(umd.js): included umd creation for ootk-transforms module [`13ef127`](https://github.com/thkruz/ootk/commit/13ef1279827c165b48d4dcc1bb70cc0813f73ae0)
182
332
 
183
333
  #### v1.0.0-alpha1
184
334
 
185
- > 13 January 2021
335
+ > 13 January 2021
186
336
 
187
337
  - Documentation [`#1`](https://github.com/thkruz/ootk/pull/1)
188
338
  - ootk rename [`f194490`](https://github.com/thkruz/ootk/commit/f194490621dcbefba99554a84d654f8003e459d0)
189
339
  - Initial Commit [`24f4627`](https://github.com/thkruz/ootk/commit/24f46276b9f5e92f0ddb9b9ce3af9c41ee3022db)
190
340
  - Functional TypeScript [`02a4b84`](https://github.com/thkruz/ootk/commit/02a4b843726f4eaa0023927dfd0e3b26aada96cd)
341
+ - Hide built [`105b742`](https://github.com/thkruz/ootk/commit/105b742abdc8753b47b4f364eb4f912dd9cce45b)
342
+ - docs(ootk-sgp4): updated documentation to split description from file [`c91cde4`](https://github.com/thkruz/ootk/commit/c91cde400044acdda684fa64d08b1b8d70ef0536)
343
+ - TS Setup [`820c884`](https://github.com/thkruz/ootk/commit/820c88495bf9b93d9129d7b5f79851114099a2f6)
344
+ - docs(readme): updated readme file to be more accurate [`5df8c5f`](https://github.com/thkruz/ootk/commit/5df8c5fdea6ca7aba25d5f1296dd5e06021e2535)
345
+ - build(package.json): added commitizen support [`860718c`](https://github.com/thkruz/ootk/commit/860718c14c75a985d2f84f069b2fea715106e87e)
346
+ - tsconfig and webpack setup [`ff50223`](https://github.com/thkruz/ootk/commit/ff50223ba7c23a6fd023b0af1af275ca8beff2da)
347
+ - ci(ci.yml): added codecov and updated CI script [`bc024c5`](https://github.com/thkruz/ootk/commit/bc024c50e180cac0317ae7419f04811afd9312f2)
348
+ - ci(ci.yml): fixed typo with indentation [`8a9c985`](https://github.com/thkruz/ootk/commit/8a9c9855bb16cfd386d94d735e84b7832a6d2825)
349
+ - build(ci.yml): added actions/cache@v2 to skip reinstalling npm packages [`43293b7`](https://github.com/thkruz/ootk/commit/43293b71ff25b5527791cb81605f9a99e3e4d04c)
350
+ - ci(ci.yml): include lib and dist in all jobs [`dd9c83a`](https://github.com/thkruz/ootk/commit/dd9c83afdfb3fe6d057cbfdf823a79cc81dc0c0e)
351
+ - ci(ci.yml): fixed typo in path [`daadbce`](https://github.com/thkruz/ootk/commit/daadbce6ebd3e6dacdd55298cd6adbfa093b954a)
352
+ - build(package.json): added auto-changelog [`c1abea7`](https://github.com/thkruz/ootk/commit/c1abea7edd46c29a8387f9bc723bbb36227199ae)
353
+ - ci(ci.yml): made another change to path [`add7891`](https://github.com/thkruz/ootk/commit/add7891edfbb1617a05f93227bd7ffb2a281cb9c)
354
+ - docs(README): updated name of the project [`8119cdb`](https://github.com/thkruz/ootk/commit/8119cdb9d7952b9befad3f254d0c7b595b33f902)
355
+ - eslint fix [`0bce593`](https://github.com/thkruz/ootk/commit/0bce593f94eb932257a5690e0a1866889becafaa)
356
+ - ci(ci.yml): included lib and dist to cache [`abdd355`](https://github.com/thkruz/ootk/commit/abdd35574fee1df773965a273f49f31b5e599a4c)
357
+ - gitignore [`a1cbf95`](https://github.com/thkruz/ootk/commit/a1cbf958e5aca36957b424f27a76e7d60fba264d)
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -15,32 +14,32 @@
15
14
  * You should have received a copy of the GNU Affero General Public License along with
16
15
  * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
17
16
  */
18
- import { EpochUTC, J2000, Matrix, Vector3D } from 'ootk-core';
17
+ import { EpochUTC, J2000, Kilometers, KilometersPerSecond, Matrix, RadiansPerSecond, Seconds, Vector3D } from 'ootk-core';
19
18
  import { Thrust } from './../force/Thrust';
20
19
  import { Waypoint } from './../maneuver/Waypoint';
21
20
  export declare class Hill {
22
21
  epoch: EpochUTC;
23
- position: Vector3D;
24
- velocity: Vector3D;
25
- private _semimajorAxis;
26
- private _meanMotion;
27
- constructor(epoch: EpochUTC, position: Vector3D, velocity: Vector3D, semimajorAxis: number);
28
- static fromState(origin: J2000, radialPosition: number, intrackPosition: number, nodeVelocity: number, nodeOffsetTime: number): Hill;
29
- static fromNmc(origin: J2000, majorAxisRange: number, nodeVelocity: number, nodeOffsetTime: number, translation?: number): Hill;
30
- static fromPerch(origin: J2000, perchRange: number, nodeVelocity: number, nodeOffsetTime: number): Hill;
31
- get semimajorAxis(): number;
32
- set semimajorAxis(sma: number);
33
- get meanMotion(): number;
22
+ position: Vector3D<Kilometers>;
23
+ velocity: Vector3D<KilometersPerSecond>;
24
+ private semimajorAxis_;
25
+ private meanMotion_;
26
+ constructor(epoch: EpochUTC, position: Vector3D<Kilometers>, velocity: Vector3D<KilometersPerSecond>, semimajorAxis: Kilometers);
27
+ static fromState(origin: J2000, radialPosition: Kilometers, intrackPosition: Kilometers, nodeVelocity: KilometersPerSecond, nodeOffsetTime: Seconds): Hill;
28
+ static fromNmc(origin: J2000, majorAxisRange: Kilometers, nodeVelocity: KilometersPerSecond, nodeOffsetTime: Seconds, translation?: number): Hill;
29
+ static fromPerch(origin: J2000, perchRange: Kilometers, nodeVelocity: KilometersPerSecond, nodeOffsetTime: Seconds): Hill;
30
+ get semimajorAxis(): Kilometers;
31
+ set semimajorAxis(sma: Kilometers);
32
+ get meanMotion(): RadiansPerSecond;
34
33
  toJ2000Matrix(origin: J2000, transform: Matrix): J2000;
35
34
  toJ2000(origin: J2000): J2000;
36
35
  static transitionMatrix(t: number, meanMotion: number): Matrix;
37
- transition(t: number): Hill;
38
- transitionWithMatrix(stm: Matrix, t: number): Hill;
36
+ transition(t: Seconds): Hill;
37
+ transitionWithMatrix(stm: Matrix, t: Seconds): Hill;
39
38
  propagate(newEpoch: EpochUTC): Hill;
40
39
  propagateWithMatrix(stm: Matrix, newEpoch: EpochUTC): Hill;
41
40
  maneuver(maneuver: Thrust): Hill;
42
- ephemeris(start: EpochUTC, stop: EpochUTC, step?: number): Hill[];
43
- get period(): number;
41
+ ephemeris(start: EpochUTC, stop: EpochUTC, step?: Seconds): Hill[];
42
+ get period(): Seconds;
44
43
  nextRadialTangent(): Hill;
45
44
  solveManeuver(waypoint: Waypoint, ignoreCrosstrack?: boolean): Thrust;
46
45
  maneuverSequence(pivot: EpochUTC, waypoints: Waypoint[], preManeuvers?: Thrust[], postManeuvers?: Thrust[]): Thrust[];
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @author @thkruz Theodore Kruczek
3
- *
4
3
  * @license AGPL-3.0-or-later
5
- * @Copyright (c) 2020-2024 Theodore Kruczek
4
+ * @copyright (c) 2020-2024 Theodore Kruczek
6
5
  *
7
6
  * Orbital Object ToolKit is free software: you can redistribute it and/or modify it under the
8
7
  * terms of the GNU Affero General Public License as published by the Free Software
@@ -15,19 +14,24 @@
15
14
  * You should have received a copy of the GNU Affero General Public License along with
16
15
  * Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
17
16
  */
18
- import { Earth, J2000, Matrix, RelativeState, Vector3D } from 'ootk-core';
17
+ import { Earth, J2000, Matrix, RelativeState, Vector3D, } from 'ootk-core';
19
18
  import { Thrust } from './../force/Thrust';
20
19
  // / Hill Modified Equidistant Cyllindrical _(EQCM)_ coordinates.
21
20
  export class Hill {
21
+ epoch;
22
+ position;
23
+ velocity;
24
+ semimajorAxis_;
25
+ meanMotion_;
22
26
  constructor(epoch, position, velocity, semimajorAxis) {
23
27
  this.epoch = epoch;
24
28
  this.position = position;
25
29
  this.velocity = velocity;
26
- this._semimajorAxis = semimajorAxis;
27
- this._meanMotion = Earth.smaToMeanMotion(this._semimajorAxis);
30
+ this.semimajorAxis_ = semimajorAxis;
31
+ this.meanMotion_ = Earth.smaToMeanMotion(this.semimajorAxis_);
28
32
  }
29
33
  static fromState(origin, radialPosition, intrackPosition, nodeVelocity, nodeOffsetTime) {
30
- const a = origin.semimajorAxis();
34
+ const a = origin.semimajorAxis;
31
35
  const n = Earth.smaToMeanMotion(a);
32
36
  const yDot = -3.0 * radialPosition * n * 0.5;
33
37
  const z = (nodeVelocity / n) * Math.sin(n * -nodeOffsetTime);
@@ -37,7 +41,7 @@ export class Hill {
37
41
  return new Hill(origin.epoch, r, v, a);
38
42
  }
39
43
  static fromNmc(origin, majorAxisRange, nodeVelocity, nodeOffsetTime, translation = 0.0) {
40
- const a = origin.semimajorAxis();
44
+ const a = origin.semimajorAxis;
41
45
  const n = Earth.smaToMeanMotion(a);
42
46
  const xDot = majorAxisRange * n * 0.5;
43
47
  const z = (nodeVelocity / n) * Math.sin(n * -nodeOffsetTime);
@@ -47,7 +51,7 @@ export class Hill {
47
51
  return new Hill(origin.epoch, r, v, a);
48
52
  }
49
53
  static fromPerch(origin, perchRange, nodeVelocity, nodeOffsetTime) {
50
- const a = origin.semimajorAxis();
54
+ const a = origin.semimajorAxis;
51
55
  const n = Earth.smaToMeanMotion(a);
52
56
  const z = (nodeVelocity / n) * Math.sin(n * -nodeOffsetTime);
53
57
  const zDot = nodeVelocity * Math.cos(n * -nodeOffsetTime);
@@ -56,14 +60,14 @@ export class Hill {
56
60
  return new Hill(origin.epoch, r, v, a);
57
61
  }
58
62
  get semimajorAxis() {
59
- return this._semimajorAxis;
63
+ return this.semimajorAxis_;
60
64
  }
61
65
  set semimajorAxis(sma) {
62
- this._semimajorAxis = sma;
63
- this._meanMotion = Earth.smaToMeanMotion(this._semimajorAxis);
66
+ this.semimajorAxis_ = sma;
67
+ this.meanMotion_ = Earth.smaToMeanMotion(this.semimajorAxis_);
64
68
  }
65
69
  get meanMotion() {
66
- return this._meanMotion;
70
+ return this.meanMotion_;
67
71
  }
68
72
  toJ2000Matrix(origin, transform) {
69
73
  const magrtgt = origin.position.magnitude();
@@ -108,13 +112,13 @@ export class Hill {
108
112
  ]);
109
113
  }
110
114
  transition(t) {
111
- const sysMat = Hill.transitionMatrix(t, this._meanMotion);
112
- const output = sysMat.multiplyVector(this.position.join(this.velocity));
113
- return new Hill(this.epoch.roll(t), new Vector3D(output[0], output[1], output[2]), new Vector3D(output[3], output[4], output[5]), this._semimajorAxis);
115
+ const sysMat = Hill.transitionMatrix(t, this.meanMotion_);
116
+ const res = sysMat.multiplyVector(this.position.join(this.velocity)).elements;
117
+ return new Hill(this.epoch.roll(t), new Vector3D(res[0], res[1], res[2]), new Vector3D(res[3], res[4], res[5]), this.semimajorAxis_);
114
118
  }
115
119
  transitionWithMatrix(stm, t) {
116
- const output = stm.multiplyVector(this.position.join(this.velocity));
117
- return new Hill(this.epoch.roll(t), new Vector3D(output[0], output[1], output[2]), new Vector3D(output[3], output[4], output[5]), this._semimajorAxis);
120
+ const res = stm.multiplyVector(this.position.join(this.velocity)).elements;
121
+ return new Hill(this.epoch.roll(t), new Vector3D(res[0], res[1], res[2]), new Vector3D(res[3], res[4], res[5]), this.semimajorAxis_);
118
122
  }
119
123
  propagate(newEpoch) {
120
124
  return this.transition(newEpoch.difference(this.epoch));
@@ -124,7 +128,7 @@ export class Hill {
124
128
  }
125
129
  maneuver(maneuver) {
126
130
  const state = this.propagate(maneuver.center);
127
- return new Hill(state.epoch, state.position, state.velocity.add(maneuver.deltaV), state._semimajorAxis);
131
+ return new Hill(state.epoch, state.position, state.velocity.add(maneuver.deltaV), state.semimajorAxis_);
128
132
  }
129
133
  ephemeris(start, stop, step = 60.0) {
130
134
  const output = [];
@@ -136,15 +140,15 @@ export class Hill {
136
140
  return output;
137
141
  }
138
142
  get period() {
139
- return (2 * Math.PI) / this._meanMotion;
143
+ return (2 * Math.PI) / this.meanMotion_;
140
144
  }
141
145
  nextRadialTangent() {
142
146
  const x = this.position.x;
143
147
  const xDot = this.velocity.x;
144
148
  const yDot = this.velocity.y;
145
- let t = Math.atan(-xDot / (3.0 * this._meanMotion * x + 2.0 * yDot)) / this._meanMotion;
149
+ let t = Math.atan(-xDot / (3.0 * this.meanMotion_ * x + 2.0 * yDot)) / this.meanMotion_;
146
150
  if (t <= 0) {
147
- t += 0.5 * this.period;
151
+ t = t + 0.5 * this.period;
148
152
  }
149
153
  else if (isNaN(t)) {
150
154
  t = 0.5 * this.period;
@@ -154,30 +158,35 @@ export class Hill {
154
158
  solveManeuver(waypoint, ignoreCrosstrack = false) {
155
159
  const t = waypoint.epoch.difference(this.epoch);
156
160
  const w = waypoint.relativePosition;
157
- const sysMat = Hill.transitionMatrix(t, this._meanMotion);
161
+ const sysMat = Hill.transitionMatrix(t, this.meanMotion_);
158
162
  const posEquationMat = new Matrix([
159
- [sysMat[0][0], sysMat[0][1], sysMat[0][2]],
160
- [sysMat[1][0], sysMat[1][1], sysMat[1][2]],
161
- [sysMat[2][0], sysMat[2][1], sysMat[2][2]],
163
+ [sysMat.elements[0][0], sysMat.elements[0][1], sysMat.elements[0][2]],
164
+ [sysMat.elements[1][0], sysMat.elements[1][1], sysMat.elements[1][2]],
165
+ [sysMat.elements[2][0], sysMat.elements[2][1], sysMat.elements[2][2]],
162
166
  ]);
163
- const solnVector = w.subtract(posEquationMat.multiplyVector3D(this.position));
167
+ const solnVector = w
168
+ .subtract(posEquationMat.multiplyVector3D(this.position));
164
169
  const velEquationMat = new Matrix([
165
- [sysMat[0][3], sysMat[0][4], sysMat[0][5]],
166
- [sysMat[1][3], sysMat[1][4], sysMat[1][5]],
167
- [sysMat[2][3], sysMat[2][4], sysMat[2][5]],
170
+ [sysMat.elements[0][3], sysMat.elements[0][4], sysMat.elements[0][5]],
171
+ [sysMat.elements[1][3], sysMat.elements[1][4], sysMat.elements[1][5]],
172
+ [sysMat.elements[2][3], sysMat.elements[2][4], sysMat.elements[2][5]],
168
173
  ]);
169
- let result = velEquationMat.inverse().multiplyVector3D(solnVector).subtract(this.velocity);
174
+ let result = velEquationMat
175
+ .inverse()
176
+ .multiplyVector3D(solnVector)
177
+ .subtract(this.velocity);
170
178
  if (ignoreCrosstrack) {
171
- result = new Vector3D(result.x * 1000, result.y * 1000, 0);
179
+ result = new Vector3D(result.x, result.y, 0);
172
180
  }
173
- return new Thrust(this.epoch, result[0] * 1000, result[1] * 1000, result[2] * 1000);
181
+ return new Thrust(this.epoch, result.x * 1000, result.y * 1000, result.z * 1000);
174
182
  }
175
183
  maneuverSequence(pivot, waypoints, preManeuvers = [], postManeuvers = []) {
176
- let state = new Hill(this.epoch, this.position, this.velocity, this._semimajorAxis);
184
+ let state = new Hill(this.epoch, this.position, this.velocity, this.semimajorAxis_);
177
185
  preManeuvers = preManeuvers.slice();
178
186
  postManeuvers = postManeuvers.slice();
179
187
  let output = preManeuvers;
180
- output.sort((a, b) => a.center.compareTo(b.center));
188
+ // Note difference was once compareTo
189
+ output.sort((a, b) => a.center.difference(b.center));
181
190
  output = output.filter((mvr) => mvr.center >= this.epoch && mvr.center >= pivot);
182
191
  for (const mvr of output) {
183
192
  state = state.maneuver(mvr);
@@ -193,12 +202,11 @@ export class Hill {
193
202
  }
194
203
  maneuverOrigin(maneuver) {
195
204
  const state = this.propagate(maneuver.center);
196
- const vInit = Math.sqrt(Earth.mu / this._semimajorAxis);
205
+ const vInit = Math.sqrt(Earth.mu / this.semimajorAxis_);
197
206
  const vFinal = vInit - maneuver.intrack * 1e-3;
198
207
  const aFinal = Earth.mu / (vFinal * vFinal);
199
208
  return new Hill(state.epoch, state.position, state.velocity.subtract(maneuver.deltaV), aFinal);
200
209
  }
201
- // eslint-disable-next-line class-methods-use-this
202
210
  get name() {
203
211
  return 'Hill';
204
212
  }