ootk 4.0.8 → 5.0.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/CHANGELOG.md +9 -2
- package/README.md +0 -15
- package/dist/body/Celestial.d.ts +96 -0
- package/dist/body/Celestial.js +124 -0
- package/dist/body/Celestial.js.map +1 -0
- package/dist/body/Earth.d.ts +68 -0
- package/dist/body/Earth.js +198 -0
- package/dist/body/Earth.js.map +1 -0
- package/dist/body/Moon.d.ts +137 -0
- package/dist/body/Moon.js +464 -0
- package/dist/body/Moon.js.map +1 -0
- package/dist/body/NutationAngles.d.ts +38 -0
- package/dist/body/NutationAngles.js +24 -0
- package/dist/body/NutationAngles.js.map +1 -0
- package/dist/body/PrecessionAngles.d.ts +29 -0
- package/dist/body/PrecessionAngles.js +24 -0
- package/dist/body/PrecessionAngles.js.map +1 -0
- package/dist/body/Sun.d.ts +305 -0
- package/dist/body/Sun.js +548 -0
- package/dist/body/Sun.js.map +1 -0
- package/dist/body/index.d.ts +26 -0
- package/dist/body/index.js +27 -0
- package/dist/body/index.js.map +1 -0
- package/dist/coordinate/ClassicalElements.d.ts +132 -0
- package/dist/coordinate/ClassicalElements.js +279 -0
- package/dist/coordinate/ClassicalElements.js.map +1 -0
- package/dist/coordinate/EquinoctialElements.d.ts +114 -0
- package/dist/coordinate/EquinoctialElements.js +172 -0
- package/dist/coordinate/EquinoctialElements.js.map +1 -0
- package/dist/coordinate/FormatTle.d.ts +95 -0
- package/dist/coordinate/FormatTle.js +184 -0
- package/dist/coordinate/FormatTle.js.map +1 -0
- package/dist/coordinate/Geodetic.d.ts +110 -0
- package/dist/coordinate/Geodetic.js +163 -0
- package/dist/coordinate/Geodetic.js.map +1 -0
- package/dist/coordinate/Hill.d.ts +1 -1
- package/dist/coordinate/Hill.js +1 -1
- package/dist/coordinate/Hill.js.map +1 -1
- package/dist/coordinate/ITRF.d.ts +75 -0
- package/dist/coordinate/ITRF.js +135 -0
- package/dist/coordinate/ITRF.js.map +1 -0
- package/dist/coordinate/J2000.d.ts +65 -0
- package/dist/coordinate/J2000.js +120 -0
- package/dist/coordinate/J2000.js.map +1 -0
- package/dist/coordinate/RIC.d.ts +64 -0
- package/dist/coordinate/RIC.js +79 -0
- package/dist/coordinate/RIC.js.map +1 -0
- package/dist/coordinate/RelativeState.d.ts +70 -0
- package/dist/coordinate/RelativeState.js +79 -0
- package/dist/coordinate/RelativeState.js.map +1 -0
- package/dist/coordinate/StateVector.d.ts +76 -0
- package/dist/coordinate/StateVector.js +97 -0
- package/dist/coordinate/StateVector.js.map +1 -0
- package/dist/coordinate/TEME.d.ts +57 -0
- package/dist/coordinate/TEME.js +89 -0
- package/dist/coordinate/TEME.js.map +1 -0
- package/dist/coordinate/Tle.d.ts +430 -0
- package/dist/coordinate/Tle.js +865 -0
- package/dist/coordinate/Tle.js.map +1 -0
- package/dist/coordinate/index.d.ts +11 -0
- package/dist/coordinate/index.js +12 -0
- package/dist/coordinate/index.js.map +1 -1
- package/dist/coordinate/tle-format-data.d.ts +41 -0
- package/dist/coordinate/tle-format-data.js +46 -0
- package/dist/coordinate/tle-format-data.js.map +1 -0
- package/dist/covariance/CovarianceSample.d.ts +1 -1
- package/dist/covariance/CovarianceSample.js +1 -1
- package/dist/covariance/CovarianceSample.js.map +1 -1
- package/dist/covariance/StateCovariance.d.ts +1 -1
- package/dist/covariance/StateCovariance.js +1 -1
- package/dist/covariance/StateCovariance.js.map +1 -1
- package/dist/data/DataHandler.d.ts +66 -0
- package/dist/data/DataHandler.js +80 -0
- package/dist/data/DataHandler.js.map +1 -0
- package/dist/data/values/Egm96Data.d.ts +37 -0
- package/dist/data/values/Egm96Data.js +63 -0
- package/dist/data/values/Egm96Data.js.map +1 -0
- package/dist/data/values/HpAtmosphereData.d.ts +33 -0
- package/dist/data/values/HpAtmosphereData.js +58 -0
- package/dist/data/values/HpAtmosphereData.js.map +1 -0
- package/dist/data/values/HpAtmosphereResult.d.ts +29 -0
- package/dist/data/values/HpAtmosphereResult.js +38 -0
- package/dist/data/values/HpAtmosphereResult.js.map +1 -0
- package/dist/data/values/Iau1980Data.d.ts +36 -0
- package/dist/data/values/Iau1980Data.js +52 -0
- package/dist/data/values/Iau1980Data.js.map +1 -0
- package/dist/data/values/LeapSecond.d.ts +27 -0
- package/dist/data/values/LeapSecond.js +35 -0
- package/dist/data/values/LeapSecond.js.map +1 -0
- package/dist/data/values/LeapSecondData.d.ts +41 -0
- package/dist/data/values/LeapSecondData.js +103 -0
- package/dist/data/values/LeapSecondData.js.map +1 -0
- package/dist/data/values/egm96.d.ts +24 -0
- package/dist/data/values/egm96.js +726 -0
- package/dist/data/values/egm96.js.map +1 -0
- package/dist/data/values/hpAtmosphere.d.ts +24 -0
- package/dist/data/values/hpAtmosphere.js +76 -0
- package/dist/data/values/hpAtmosphere.js.map +1 -0
- package/dist/data/values/iau1980.d.ts +24 -0
- package/dist/data/values/iau1980.js +30 -0
- package/dist/data/values/iau1980.js.map +1 -0
- package/dist/enums/AngularDiameterMethod.d.ts +27 -0
- package/dist/enums/AngularDiameterMethod.js +29 -0
- package/dist/enums/AngularDiameterMethod.js.map +1 -0
- package/dist/enums/AngularDistanceMethod.d.ts +27 -0
- package/dist/enums/AngularDistanceMethod.js +29 -0
- package/dist/enums/AngularDistanceMethod.js.map +1 -0
- package/dist/enums/OrbitRegime.d.ts +30 -0
- package/dist/enums/OrbitRegime.js +32 -0
- package/dist/enums/OrbitRegime.js.map +1 -0
- package/dist/enums/PassType.d.ts +28 -0
- package/dist/enums/PassType.js +30 -0
- package/dist/enums/PassType.js.map +1 -0
- package/dist/enums/Sgp4OpsMode.d.ts +26 -0
- package/dist/enums/Sgp4OpsMode.js +28 -0
- package/dist/enums/Sgp4OpsMode.js.map +1 -0
- package/dist/enums/index.d.ts +5 -0
- package/dist/enums/index.js +5 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/force/AtmosphericDrag.d.ts +1 -1
- package/dist/force/AtmosphericDrag.js +1 -1
- package/dist/force/AtmosphericDrag.js.map +1 -1
- package/dist/force/EarthGravity.d.ts +1 -1
- package/dist/force/EarthGravity.js +1 -1
- package/dist/force/EarthGravity.js.map +1 -1
- package/dist/force/Force.d.ts +1 -1
- package/dist/force/ForceModel.d.ts +1 -1
- package/dist/force/ForceModel.js +1 -1
- package/dist/force/ForceModel.js.map +1 -1
- package/dist/force/Gravity.d.ts +1 -1
- package/dist/force/Gravity.js +1 -1
- package/dist/force/Gravity.js.map +1 -1
- package/dist/force/SolarRadiationPressure.d.ts +1 -1
- package/dist/force/SolarRadiationPressure.js +1 -1
- package/dist/force/SolarRadiationPressure.js.map +1 -1
- package/dist/force/ThirdBodyGravity.d.ts +1 -1
- package/dist/force/ThirdBodyGravity.js +1 -1
- package/dist/force/ThirdBodyGravity.js.map +1 -1
- package/dist/force/Thrust.d.ts +1 -1
- package/dist/force/Thrust.js +1 -1
- package/dist/force/Thrust.js.map +1 -1
- package/dist/interfaces/BaseObjectParams.d.ts +31 -0
- package/dist/interfaces/BaseObjectParams.js +24 -0
- package/dist/interfaces/BaseObjectParams.js.map +1 -0
- package/dist/interfaces/ClassicalElementsParams.d.ts +33 -0
- package/dist/interfaces/ClassicalElementsParams.js +24 -0
- package/dist/interfaces/ClassicalElementsParams.js.map +1 -0
- package/dist/interfaces/EquinoctialElementsParams.d.ts +35 -0
- package/dist/interfaces/EquinoctialElementsParams.js +24 -0
- package/dist/interfaces/EquinoctialElementsParams.js.map +1 -0
- package/dist/interfaces/GroundPositionParams.d.ts +28 -0
- package/dist/interfaces/GroundPositionParams.js +24 -0
- package/dist/interfaces/GroundPositionParams.js.map +1 -0
- package/dist/interfaces/OmmFormat.d.ts +62 -0
- package/dist/interfaces/OmmFormat.js +2 -0
- package/dist/interfaces/OmmFormat.js.map +1 -0
- package/dist/interfaces/OptionsParams.d.ts +3 -0
- package/dist/interfaces/OptionsParams.js +2 -0
- package/dist/interfaces/OptionsParams.js.map +1 -0
- package/dist/interfaces/RfSensorParams.d.ts +1 -1
- package/dist/interfaces/SatelliteParams.d.ts +18 -0
- package/dist/interfaces/SatelliteParams.js +2 -0
- package/dist/interfaces/SatelliteParams.js.map +1 -0
- package/dist/interfaces/SensorParams.d.ts +38 -0
- package/dist/interfaces/SensorParams.js +2 -0
- package/dist/interfaces/SensorParams.js.map +1 -0
- package/dist/interfaces/StarObjectParams.d.ts +10 -0
- package/dist/interfaces/StarObjectParams.js +2 -0
- package/dist/interfaces/StarObjectParams.js.map +1 -0
- package/dist/interfaces/TimeVariables.d.ts +6 -0
- package/dist/interfaces/TimeVariables.js +2 -0
- package/dist/interfaces/TimeVariables.js.map +1 -0
- package/dist/interfaces/index.d.ts +8 -0
- package/dist/interpolator/ChebyshevCoefficients.d.ts +1 -1
- package/dist/interpolator/ChebyshevCoefficients.js +1 -1
- package/dist/interpolator/ChebyshevCoefficients.js.map +1 -1
- package/dist/interpolator/ChebyshevInterpolator.d.ts +1 -1
- package/dist/interpolator/ChebyshevInterpolator.js +1 -1
- package/dist/interpolator/ChebyshevInterpolator.js.map +1 -1
- package/dist/interpolator/CubicSpline.d.ts +1 -1
- package/dist/interpolator/CubicSplineInterpolator.d.ts +1 -1
- package/dist/interpolator/CubicSplineInterpolator.js +1 -1
- package/dist/interpolator/CubicSplineInterpolator.js.map +1 -1
- package/dist/interpolator/Interpolator.d.ts +1 -1
- package/dist/interpolator/Interpolator.js +1 -1
- package/dist/interpolator/Interpolator.js.map +1 -1
- package/dist/interpolator/LagrangeInterpolator.d.ts +1 -1
- package/dist/interpolator/LagrangeInterpolator.js +1 -1
- package/dist/interpolator/LagrangeInterpolator.js.map +1 -1
- package/dist/interpolator/StateInterpolator.d.ts +1 -1
- package/dist/interpolator/VerletBlendInterpolator.d.ts +1 -1
- package/dist/interpolator/VerletBlendInterpolator.js +1 -1
- package/dist/interpolator/VerletBlendInterpolator.js.map +1 -1
- package/dist/main.d.ts +11 -3
- package/dist/main.js +11 -3
- package/dist/main.js.map +1 -1
- package/dist/maneuver/TwoBurnOrbitTransfer.d.ts +1 -1
- package/dist/maneuver/TwoBurnOrbitTransfer.js +1 -1
- package/dist/maneuver/TwoBurnOrbitTransfer.js.map +1 -1
- package/dist/maneuver/Waypoint.d.ts +1 -1
- package/dist/maneuver/Waypoint.js +1 -1
- package/dist/maneuver/Waypoint.js.map +1 -1
- package/dist/objects/BaseObject.d.ts +74 -0
- package/dist/objects/BaseObject.js +151 -0
- package/dist/objects/BaseObject.js.map +1 -0
- package/dist/objects/DetailedSatellite.d.ts +3 -1
- package/dist/objects/DetailedSatellite.js +4 -2
- package/dist/objects/DetailedSatellite.js.map +1 -1
- package/dist/objects/DetailedSensor.d.ts +2 -1
- package/dist/objects/DetailedSensor.js +1 -1
- package/dist/objects/DetailedSensor.js.map +1 -1
- package/dist/objects/GroundObject.d.ts +85 -0
- package/dist/objects/GroundObject.js +143 -0
- package/dist/objects/GroundObject.js.map +1 -0
- package/dist/objects/LandObject.d.ts +2 -1
- package/dist/objects/LandObject.js +1 -1
- package/dist/objects/LandObject.js.map +1 -1
- package/dist/objects/Marker.d.ts +1 -1
- package/dist/objects/Marker.js +1 -1
- package/dist/objects/Marker.js.map +1 -1
- package/dist/objects/RfSensor.d.ts +1 -2
- package/dist/objects/RfSensor.js +1 -2
- package/dist/objects/RfSensor.js.map +1 -1
- package/dist/objects/Satellite.d.ts +226 -0
- package/dist/objects/Satellite.js +443 -0
- package/dist/objects/Satellite.js.map +1 -0
- package/dist/objects/Sensor.d.ts +100 -0
- package/dist/objects/Sensor.js +239 -0
- package/dist/objects/Sensor.js.map +1 -0
- package/dist/objects/Star.d.ts +36 -0
- package/dist/objects/Star.js +59 -0
- package/dist/objects/Star.js.map +1 -0
- package/dist/objects/index.d.ts +5 -0
- package/dist/objects/index.js +5 -0
- package/dist/objects/index.js.map +1 -1
- package/dist/observation/Observation.d.ts +1 -1
- package/dist/observation/ObservationOptical.d.ts +1 -1
- package/dist/observation/ObservationOptical.js +1 -1
- package/dist/observation/ObservationOptical.js.map +1 -1
- package/dist/observation/ObservationRadar.d.ts +1 -1
- package/dist/observation/ObservationRadar.js +1 -1
- package/dist/observation/ObservationRadar.js.map +1 -1
- package/dist/observation/ObservationUtils.d.ts +3 -1
- package/dist/observation/ObservationUtils.js +15 -1
- package/dist/observation/ObservationUtils.js.map +1 -1
- package/dist/observation/RAE.d.ts +111 -0
- package/dist/observation/RAE.js +215 -0
- package/dist/observation/RAE.js.map +1 -0
- package/dist/observation/RadecGeocentric.d.ts +111 -0
- package/dist/observation/RadecGeocentric.js +169 -0
- package/dist/observation/RadecGeocentric.js.map +1 -0
- package/dist/observation/RadecTopocentric.d.ts +123 -0
- package/dist/observation/RadecTopocentric.js +196 -0
- package/dist/observation/RadecTopocentric.js.map +1 -0
- package/dist/observation/index.d.ts +26 -0
- package/dist/observation/index.js +27 -0
- package/dist/observation/index.js.map +1 -0
- package/dist/operations/BoxMuller.d.ts +1 -1
- package/dist/operations/BoxMuller.js +1 -1
- package/dist/operations/BoxMuller.js.map +1 -1
- package/dist/operations/EulerAngles.d.ts +1 -1
- package/dist/operations/EulerAngles.js +1 -1
- package/dist/operations/EulerAngles.js.map +1 -1
- package/dist/operations/Matrix.d.ts +170 -0
- package/dist/operations/Matrix.js +405 -0
- package/dist/operations/Matrix.js.map +1 -0
- package/dist/operations/Quaternion.d.ts +1 -1
- package/dist/operations/Quaternion.js +1 -1
- package/dist/operations/Quaternion.js.map +1 -1
- package/dist/operations/Random.d.ts +40 -0
- package/dist/operations/Random.js +50 -0
- package/dist/operations/Random.js.map +1 -0
- package/dist/operations/RandomGaussianSource.d.ts +1 -1
- package/dist/operations/RandomGaussianSource.js +1 -1
- package/dist/operations/RandomGaussianSource.js.map +1 -1
- package/dist/operations/Vector.d.ts +262 -0
- package/dist/operations/Vector.js +415 -0
- package/dist/operations/Vector.js.map +1 -0
- package/dist/operations/Vector3D.d.ts +86 -0
- package/dist/operations/Vector3D.js +241 -0
- package/dist/operations/Vector3D.js.map +1 -0
- package/dist/operations/operations.d.ts +26 -0
- package/dist/operations/operations.js +27 -0
- package/dist/operations/operations.js.map +1 -0
- package/dist/optimize/ChebyshevCompressor.js +1 -1
- package/dist/optimize/ChebyshevCompressor.js.map +1 -1
- package/dist/optimize/PolynomialRegression.js +1 -1
- package/dist/optimize/PolynomialRegression.js.map +1 -1
- package/dist/optimize/SimplexEntry.js +1 -1
- package/dist/optimize/SimplexEntry.js.map +1 -1
- package/dist/orbit_determination/BatchLeastSquaresOD.d.ts +1 -1
- package/dist/orbit_determination/BatchLeastSquaresOD.js +1 -1
- package/dist/orbit_determination/BatchLeastSquaresOD.js.map +1 -1
- package/dist/orbit_determination/BatchLeastSquaresResult.d.ts +1 -1
- package/dist/orbit_determination/GibbsIOD.d.ts +1 -1
- package/dist/orbit_determination/GibbsIOD.js +1 -1
- package/dist/orbit_determination/GibbsIOD.js.map +1 -1
- package/dist/orbit_determination/GoodingIOD.d.ts +1 -1
- package/dist/orbit_determination/GoodingIOD.js +1 -1
- package/dist/orbit_determination/GoodingIOD.js.map +1 -1
- package/dist/orbit_determination/HerrickGibbsIOD.d.ts +1 -1
- package/dist/orbit_determination/HerrickGibbsIOD.js +1 -1
- package/dist/orbit_determination/HerrickGibbsIOD.js.map +1 -1
- package/dist/orbit_determination/LambertIOD.d.ts +1 -1
- package/dist/orbit_determination/LambertIOD.js +1 -1
- package/dist/orbit_determination/LambertIOD.js.map +1 -1
- package/dist/orbit_determination/ModifiedGoodingIOD.d.ts +1 -1
- package/dist/orbit_determination/ModifiedGoodingIOD.js +1 -1
- package/dist/orbit_determination/ModifiedGoodingIOD.js.map +1 -1
- package/dist/orbit_determination/index.d.ts +7 -0
- package/dist/orbit_determination/index.js +8 -0
- package/dist/orbit_determination/index.js.map +1 -0
- package/dist/propagator/KeplerPropagator.d.ts +1 -1
- package/dist/propagator/KeplerPropagator.js +1 -1
- package/dist/propagator/KeplerPropagator.js.map +1 -1
- package/dist/propagator/Propagator.d.ts +1 -1
- package/dist/propagator/Propagator.js +1 -1
- package/dist/propagator/Propagator.js.map +1 -1
- package/dist/propagator/RkCheckpoint.d.ts +1 -1
- package/dist/propagator/RkResult.d.ts +1 -1
- package/dist/propagator/RungeKutta4Propagator.d.ts +1 -1
- package/dist/propagator/RungeKutta4Propagator.js +1 -1
- package/dist/propagator/RungeKutta4Propagator.js.map +1 -1
- package/dist/propagator/RungeKuttaAdaptive.d.ts +1 -1
- package/dist/propagator/RungeKuttaAdaptive.js +1 -1
- package/dist/propagator/RungeKuttaAdaptive.js.map +1 -1
- package/dist/propagator/Sgp4Propagator.d.ts +1 -1
- package/dist/sgp4/index.d.ts +23 -0
- package/dist/sgp4/index.js +24 -0
- package/dist/sgp4/index.js.map +1 -0
- package/dist/sgp4/sgp4-error.d.ts +22 -0
- package/dist/sgp4/sgp4-error.js +44 -0
- package/dist/sgp4/sgp4-error.js.map +1 -0
- package/dist/sgp4/sgp4.d.ts +102 -0
- package/dist/sgp4/sgp4.js +3167 -0
- package/dist/sgp4/sgp4.js.map +1 -0
- package/dist/smoothing/ExponentialSmoothing.d.ts +1 -1
- package/dist/time/Epoch.d.ts +44 -0
- package/dist/time/Epoch.js +109 -0
- package/dist/time/Epoch.js.map +1 -0
- package/dist/time/EpochGPS.d.ts +42 -0
- package/dist/time/EpochGPS.js +70 -0
- package/dist/time/EpochGPS.js.map +1 -0
- package/dist/time/EpochTAI.d.ts +26 -0
- package/dist/time/EpochTAI.js +27 -0
- package/dist/time/EpochTAI.js.map +1 -0
- package/dist/time/EpochTDB.d.ts +26 -0
- package/dist/time/EpochTDB.js +27 -0
- package/dist/time/EpochTDB.js.map +1 -0
- package/dist/time/EpochTT.d.ts +26 -0
- package/dist/time/EpochTT.js +27 -0
- package/dist/time/EpochTT.js.map +1 -0
- package/dist/time/EpochUTC.d.ts +59 -0
- package/dist/time/EpochUTC.js +137 -0
- package/dist/time/EpochUTC.js.map +1 -0
- package/dist/time/EpochWindow.d.ts +28 -0
- package/dist/time/EpochWindow.js +31 -0
- package/dist/time/EpochWindow.js.map +1 -0
- package/dist/time/TimeStamped.d.ts +43 -0
- package/dist/time/TimeStamped.js +46 -0
- package/dist/time/TimeStamped.js.map +1 -0
- package/dist/time/index.d.ts +30 -0
- package/dist/time/index.js +31 -0
- package/dist/time/index.js.map +1 -0
- package/dist/transforms/TransformCache.d.ts +27 -0
- package/dist/transforms/TransformCache.js +41 -0
- package/dist/transforms/TransformCache.js.map +1 -0
- package/dist/transforms/conversions.d.ts +63 -0
- package/dist/transforms/conversions.js +88 -0
- package/dist/transforms/conversions.js.map +1 -0
- package/dist/transforms/index.d.ts +1 -0
- package/dist/transforms/index.js +1 -0
- package/dist/transforms/index.js.map +1 -1
- package/dist/transforms/transforms.d.ts +166 -2
- package/dist/transforms/transforms.js +372 -1
- package/dist/transforms/transforms.js.map +1 -1
- package/dist/types/types.d.ts +674 -2
- package/dist/types/types.js +36 -0
- package/dist/types/types.js.map +1 -1
- package/dist/utils/constants.d.ts +80 -0
- package/dist/utils/constants.js +87 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/functions.d.ts +228 -0
- package/dist/utils/functions.js +476 -0
- package/dist/utils/functions.js.map +1 -1
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/jacobian.d.ts +1 -1
- package/dist/utils/jacobian.js +1 -1
- package/dist/utils/jacobian.js.map +1 -1
- package/dist/utils/linearDistance.d.ts +8 -0
- package/dist/utils/linearDistance.js +10 -0
- package/dist/utils/linearDistance.js.map +1 -0
- package/package.json +4 -7
- package/src/body/Celestial.ts +134 -0
- package/src/body/Earth.ts +260 -0
- package/src/body/Moon.ts +556 -0
- package/src/body/NutationAngles.ts +40 -0
- package/src/body/PrecessionAngles.ts +31 -0
- package/src/body/Sun.ts +669 -0
- package/src/body/index.ts +27 -0
- package/src/body/suncalc.LICENSE.md +18 -0
- package/src/coordinate/ClassicalElements.ts +326 -0
- package/src/coordinate/EquinoctialElements.ts +189 -0
- package/src/coordinate/FormatTle.ts +214 -0
- package/src/coordinate/Geodetic.ts +186 -0
- package/src/coordinate/Hill.ts +1 -1
- package/src/coordinate/ITRF.ts +146 -0
- package/src/coordinate/J2000.ts +130 -0
- package/src/coordinate/RIC.ts +87 -0
- package/src/coordinate/RelativeState.ts +101 -0
- package/src/coordinate/StateVector.ts +122 -0
- package/src/coordinate/TEME.ts +97 -0
- package/src/coordinate/Tle.ts +1024 -0
- package/src/coordinate/index.ts +12 -0
- package/src/coordinate/tle-format-data.ts +47 -0
- package/src/covariance/CovarianceSample.ts +1 -1
- package/src/covariance/StateCovariance.ts +1 -1
- package/src/data/DataHandler.ts +88 -0
- package/src/data/values/Egm96Data.ts +75 -0
- package/src/data/values/HpAtmosphereData.ts +76 -0
- package/src/data/values/HpAtmosphereResult.ts +41 -0
- package/src/data/values/Iau1980Data.ts +63 -0
- package/src/data/values/LeapSecond.ts +37 -0
- package/src/data/values/LeapSecondData.ts +113 -0
- package/src/data/values/egm96.ts +728 -0
- package/src/data/values/hpAtmosphere.ts +79 -0
- package/src/data/values/iau1980.ts +32 -0
- package/src/enums/AngularDiameterMethod.ts +28 -0
- package/src/enums/AngularDistanceMethod.ts +28 -0
- package/src/enums/OrbitRegime.ts +31 -0
- package/src/enums/PassType.ts +29 -0
- package/src/enums/Sgp4OpsMode.ts +27 -0
- package/src/enums/index.ts +5 -0
- package/src/force/AtmosphericDrag.ts +1 -1
- package/src/force/EarthGravity.ts +1 -1
- package/src/force/Force.ts +1 -1
- package/src/force/ForceModel.ts +1 -1
- package/src/force/Gravity.ts +1 -1
- package/src/force/SolarRadiationPressure.ts +1 -1
- package/src/force/ThirdBodyGravity.ts +1 -1
- package/src/force/Thrust.ts +1 -1
- package/src/interfaces/BaseObjectParams.ts +33 -0
- package/src/interfaces/ClassicalElementsParams.ts +35 -0
- package/src/interfaces/EquinoctialElementsParams.ts +37 -0
- package/src/interfaces/GroundPositionParams.ts +30 -0
- package/src/interfaces/OmmFormat.ts +63 -0
- package/src/interfaces/OptionsParams.ts +3 -0
- package/src/interfaces/RfSensorParams.ts +1 -1
- package/src/interfaces/SatelliteParams.ts +20 -0
- package/src/interfaces/SensorParams.ts +39 -0
- package/src/interfaces/StarObjectParams.ts +11 -0
- package/src/interfaces/TimeVariables.ts +7 -0
- package/src/interfaces/index.ts +8 -0
- package/src/interpolator/ChebyshevCoefficients.ts +1 -1
- package/src/interpolator/ChebyshevInterpolator.ts +1 -1
- package/src/interpolator/CubicSpline.ts +1 -1
- package/src/interpolator/CubicSplineInterpolator.ts +1 -1
- package/src/interpolator/Interpolator.ts +1 -1
- package/src/interpolator/LagrangeInterpolator.ts +1 -1
- package/src/interpolator/StateInterpolator.ts +1 -1
- package/src/interpolator/VerletBlendInterpolator.ts +1 -1
- package/src/main.ts +11 -3
- package/src/maneuver/TwoBurnOrbitTransfer.ts +1 -1
- package/src/maneuver/Waypoint.ts +1 -1
- package/src/objects/BaseObject.ts +171 -0
- package/src/objects/DetailedSatellite.ts +5 -3
- package/src/objects/DetailedSensor.ts +2 -1
- package/src/objects/GroundObject.ts +176 -0
- package/src/objects/LandObject.ts +2 -1
- package/src/objects/Marker.ts +1 -1
- package/src/objects/RfSensor.ts +1 -2
- package/src/objects/Satellite.ts +552 -0
- package/src/objects/Sensor.ts +280 -0
- package/src/objects/Star.ts +96 -0
- package/src/objects/index.ts +5 -0
- package/src/observation/Observation.ts +1 -1
- package/src/observation/ObservationOptical.ts +1 -1
- package/src/observation/ObservationRadar.ts +1 -1
- package/src/observation/ObservationUtils.ts +30 -1
- package/src/observation/RAE.ts +262 -0
- package/src/observation/RadecGeocentric.ts +206 -0
- package/src/observation/RadecTopocentric.ts +241 -0
- package/src/observation/index.ts +27 -0
- package/src/operations/BoxMuller.ts +1 -1
- package/src/operations/EulerAngles.ts +1 -1
- package/src/operations/Matrix.ts +473 -0
- package/src/operations/Quaternion.ts +1 -1
- package/src/operations/Random.ts +54 -0
- package/src/operations/RandomGaussianSource.ts +1 -1
- package/src/operations/Vector.ts +484 -0
- package/src/operations/Vector3D.ts +289 -0
- package/src/operations/operations.ts +27 -0
- package/src/optimize/ChebyshevCompressor.ts +1 -1
- package/src/optimize/PolynomialRegression.ts +1 -1
- package/src/optimize/SimplexEntry.ts +1 -1
- package/src/orbit_determination/BatchLeastSquaresOD.ts +1 -1
- package/src/orbit_determination/BatchLeastSquaresResult.ts +1 -1
- package/src/orbit_determination/GibbsIOD.ts +3 -1
- package/src/orbit_determination/GoodingIOD.ts +1 -1
- package/src/orbit_determination/HerrickGibbsIOD.ts +1 -1
- package/src/orbit_determination/LambertIOD.ts +1 -1
- package/src/orbit_determination/ModifiedGoodingIOD.ts +1 -1
- package/src/orbit_determination/index.ts +7 -0
- package/src/propagator/KeplerPropagator.ts +1 -1
- package/src/propagator/Propagator.ts +1 -1
- package/src/propagator/RkCheckpoint.ts +1 -1
- package/src/propagator/RkResult.ts +1 -1
- package/src/propagator/RungeKutta4Propagator.ts +1 -1
- package/src/propagator/RungeKuttaAdaptive.ts +1 -1
- package/src/propagator/Sgp4Propagator.ts +1 -1
- package/src/sgp4/index.ts +24 -0
- package/src/sgp4/sgp4-error.ts +53 -0
- package/src/sgp4/sgp4.LICENSE.md +28 -0
- package/src/sgp4/sgp4.ts +3986 -0
- package/src/smoothing/ExponentialSmoothing.ts +1 -1
- package/src/time/Epoch.ts +128 -0
- package/src/time/EpochGPS.ts +76 -0
- package/src/time/EpochTAI.ts +27 -0
- package/src/time/EpochTDB.ts +27 -0
- package/src/time/EpochTT.ts +27 -0
- package/src/time/EpochUTC.ts +188 -0
- package/src/time/EpochWindow.ts +33 -0
- package/src/time/TimeStamped.ts +50 -0
- package/src/time/index.ts +31 -0
- package/src/transforms/TransformCache.ts +46 -0
- package/src/transforms/conversions.ts +98 -0
- package/src/transforms/index.ts +1 -0
- package/src/transforms/transforms.ts +478 -2
- package/src/types/types.ts +721 -2
- package/src/utils/constants.ts +113 -0
- package/src/utils/functions.ts +562 -0
- package/src/utils/index.ts +3 -1
- package/src/utils/jacobian.ts +1 -1
- package/src/utils/linearDistance.ts +11 -0
package/dist/types/types.js
CHANGED
|
@@ -14,6 +14,42 @@
|
|
|
14
14
|
* You should have received a copy of the GNU Affero General Public License along with
|
|
15
15
|
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* Enum representing different types of objects.
|
|
19
|
+
*/
|
|
20
|
+
export var SpaceObjectType;
|
|
21
|
+
(function (SpaceObjectType) {
|
|
22
|
+
SpaceObjectType[SpaceObjectType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
23
|
+
SpaceObjectType[SpaceObjectType["PAYLOAD"] = 1] = "PAYLOAD";
|
|
24
|
+
SpaceObjectType[SpaceObjectType["ROCKET_BODY"] = 2] = "ROCKET_BODY";
|
|
25
|
+
SpaceObjectType[SpaceObjectType["DEBRIS"] = 3] = "DEBRIS";
|
|
26
|
+
SpaceObjectType[SpaceObjectType["SPECIAL"] = 4] = "SPECIAL";
|
|
27
|
+
SpaceObjectType[SpaceObjectType["BALLISTIC_MISSILE"] = 8] = "BALLISTIC_MISSILE";
|
|
28
|
+
SpaceObjectType[SpaceObjectType["STAR"] = 9] = "STAR";
|
|
29
|
+
SpaceObjectType[SpaceObjectType["INTERGOVERNMENTAL_ORGANIZATION"] = 10] = "INTERGOVERNMENTAL_ORGANIZATION";
|
|
30
|
+
SpaceObjectType[SpaceObjectType["SUBORBITAL_PAYLOAD_OPERATOR"] = 11] = "SUBORBITAL_PAYLOAD_OPERATOR";
|
|
31
|
+
SpaceObjectType[SpaceObjectType["PAYLOAD_OWNER"] = 12] = "PAYLOAD_OWNER";
|
|
32
|
+
SpaceObjectType[SpaceObjectType["METEOROLOGICAL_ROCKET_LAUNCH_AGENCY_OR_MANUFACTURER"] = 13] = "METEOROLOGICAL_ROCKET_LAUNCH_AGENCY_OR_MANUFACTURER";
|
|
33
|
+
SpaceObjectType[SpaceObjectType["PAYLOAD_MANUFACTURER"] = 14] = "PAYLOAD_MANUFACTURER";
|
|
34
|
+
SpaceObjectType[SpaceObjectType["LAUNCH_AGENCY"] = 15] = "LAUNCH_AGENCY";
|
|
35
|
+
SpaceObjectType[SpaceObjectType["LAUNCH_SITE"] = 16] = "LAUNCH_SITE";
|
|
36
|
+
SpaceObjectType[SpaceObjectType["LAUNCH_POSITION"] = 17] = "LAUNCH_POSITION";
|
|
37
|
+
SpaceObjectType[SpaceObjectType["LAUNCH_FACILITY"] = 18] = "LAUNCH_FACILITY";
|
|
38
|
+
SpaceObjectType[SpaceObjectType["CONTROL_FACILITY"] = 19] = "CONTROL_FACILITY";
|
|
39
|
+
SpaceObjectType[SpaceObjectType["GROUND_SENSOR_STATION"] = 20] = "GROUND_SENSOR_STATION";
|
|
40
|
+
SpaceObjectType[SpaceObjectType["OPTICAL"] = 21] = "OPTICAL";
|
|
41
|
+
SpaceObjectType[SpaceObjectType["MECHANICAL"] = 22] = "MECHANICAL";
|
|
42
|
+
SpaceObjectType[SpaceObjectType["PHASED_ARRAY_RADAR"] = 23] = "PHASED_ARRAY_RADAR";
|
|
43
|
+
SpaceObjectType[SpaceObjectType["OBSERVER"] = 24] = "OBSERVER";
|
|
44
|
+
SpaceObjectType[SpaceObjectType["BISTATIC_RADIO_TELESCOPE"] = 25] = "BISTATIC_RADIO_TELESCOPE";
|
|
45
|
+
SpaceObjectType[SpaceObjectType["COUNTRY"] = 26] = "COUNTRY";
|
|
46
|
+
SpaceObjectType[SpaceObjectType["LAUNCH_VEHICLE_MANUFACTURER"] = 27] = "LAUNCH_VEHICLE_MANUFACTURER";
|
|
47
|
+
SpaceObjectType[SpaceObjectType["ENGINE_MANUFACTURER"] = 28] = "ENGINE_MANUFACTURER";
|
|
48
|
+
SpaceObjectType[SpaceObjectType["NOTIONAL"] = 29] = "NOTIONAL";
|
|
49
|
+
SpaceObjectType[SpaceObjectType["FRAGMENT"] = 30] = "FRAGMENT";
|
|
50
|
+
SpaceObjectType[SpaceObjectType["SHORT_TERM_FENCE"] = 31] = "SHORT_TERM_FENCE";
|
|
51
|
+
SpaceObjectType[SpaceObjectType["MAX_SPACE_OBJECT_TYPE"] = 32] = "MAX_SPACE_OBJECT_TYPE";
|
|
52
|
+
})(SpaceObjectType || (SpaceObjectType = {}));
|
|
17
53
|
export var ZoomValue;
|
|
18
54
|
(function (ZoomValue) {
|
|
19
55
|
ZoomValue[ZoomValue["LEO"] = 0.45] = "LEO";
|
package/dist/types/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA+gBH;;GAEG;AACH,MAAM,CAAN,IAAY,eA+BX;AA/BD,WAAY,eAAe;IACzB,2DAAW,CAAA;IACX,2DAAW,CAAA;IACX,mEAAe,CAAA;IACf,yDAAU,CAAA;IACV,2DAAW,CAAA;IACX,+EAAqB,CAAA;IACrB,qDAAQ,CAAA;IACR,0GAAmC,CAAA;IACnC,oGAAgC,CAAA;IAChC,wEAAkB,CAAA;IAClB,oJAAwD,CAAA;IACxD,sFAAyB,CAAA;IACzB,wEAAkB,CAAA;IAClB,oEAAgB,CAAA;IAChB,4EAAoB,CAAA;IACpB,4EAAoB,CAAA;IACpB,8EAAqB,CAAA;IACrB,wFAA0B,CAAA;IAC1B,4DAAY,CAAA;IACZ,kEAAe,CAAA;IACf,kFAAuB,CAAA;IACvB,8DAAa,CAAA;IACb,8FAA6B,CAAA;IAC7B,4DAAY,CAAA;IACZ,oGAAgC,CAAA;IAChC,oFAAwB,CAAA;IACxB,8DAAa,CAAA;IACb,8DAAa,CAAA;IACb,8EAAqB,CAAA;IACrB,wFAA0B,CAAA;AAC5B,CAAC,EA/BW,eAAe,KAAf,eAAe,QA+B1B;AAmKD,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0CAAU,CAAA;IACV,0CAAU,CAAA;IACV,uCAAO,CAAA;AACT,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,qCAAoB,CAAA;IACpB,4CAA2B,CAAA;IAC3B,qCAAoB,CAAA;IACpB,4BAAW,CAAA;IACX,uCAAsB,CAAA;IACtB,8BAAa,CAAA;IACb,8BAAa,CAAA;AACf,CAAC,EATW,aAAa,KAAb,aAAa,QASxB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Degrees, Milliseconds, Minutes, Radians, Seconds } from '../types/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Full circle in radians (PI * 2)
|
|
4
|
+
*
|
|
5
|
+
* https://tauday.com/tau-manifesto
|
|
6
|
+
*/
|
|
7
|
+
export declare const TAU: Radians;
|
|
8
|
+
/**
|
|
9
|
+
* Represents half of the mathematical constant PI.
|
|
10
|
+
*/
|
|
11
|
+
export declare const halfPi: Radians;
|
|
12
|
+
/**
|
|
13
|
+
* Converts degrees to radians.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DEG2RAD: Radians;
|
|
16
|
+
/**
|
|
17
|
+
* Converts radians to degrees.
|
|
18
|
+
*/
|
|
19
|
+
export declare const RAD2DEG: Degrees;
|
|
20
|
+
/**
|
|
21
|
+
* Conversion factor from seconds to degrees.
|
|
22
|
+
*/
|
|
23
|
+
export declare const sec2deg: Degrees;
|
|
24
|
+
/**
|
|
25
|
+
* Conversion factor from seconds to days.
|
|
26
|
+
*/
|
|
27
|
+
export declare const sec2day: number;
|
|
28
|
+
/**
|
|
29
|
+
* Conversion factor from arcseconds to radians.
|
|
30
|
+
*/
|
|
31
|
+
export declare const asec2rad: Radians;
|
|
32
|
+
/**
|
|
33
|
+
* Convert ten-thousandths of an arcsecond to radians.
|
|
34
|
+
*/
|
|
35
|
+
export declare const ttasec2rad: Radians;
|
|
36
|
+
/**
|
|
37
|
+
* Convert milliarcseconds to radians.
|
|
38
|
+
*/
|
|
39
|
+
export declare const masec2rad: Radians;
|
|
40
|
+
/**
|
|
41
|
+
* The angular velocity of the Earth in radians per second.
|
|
42
|
+
*/
|
|
43
|
+
export declare const angularVelocityOfEarth = 0.00007292115;
|
|
44
|
+
/**
|
|
45
|
+
* Astronomical unit in kilometers.
|
|
46
|
+
*/
|
|
47
|
+
export declare const astronomicalUnit = 149597870;
|
|
48
|
+
export declare const msec2sec: Seconds;
|
|
49
|
+
export declare const cMPerSec = 299792458;
|
|
50
|
+
export declare const cKmPerSec: number;
|
|
51
|
+
export declare const cKmPerMs: number;
|
|
52
|
+
export declare const MS_PER_DAY = 86400000;
|
|
53
|
+
export declare const secondsPerDay = 86400;
|
|
54
|
+
export declare const sec2min: Minutes;
|
|
55
|
+
export declare const secondsPerSiderealDay = 86164.0905;
|
|
56
|
+
export declare const secondsPerWeek: number;
|
|
57
|
+
/**
|
|
58
|
+
* Half the number of radians in a circle.
|
|
59
|
+
*/
|
|
60
|
+
export declare const PI: Radians;
|
|
61
|
+
export declare const x2o3: number;
|
|
62
|
+
export declare const temp4 = 1.5e-12;
|
|
63
|
+
/**
|
|
64
|
+
* The number of minutes in a day.
|
|
65
|
+
*/
|
|
66
|
+
export declare const MINUTES_PER_DAY: Minutes;
|
|
67
|
+
/**
|
|
68
|
+
* The number of milliseconds in a day.
|
|
69
|
+
*/
|
|
70
|
+
export declare const MILLISECONDS_TO_DAYS = 1.15741e-8;
|
|
71
|
+
/**
|
|
72
|
+
* The number of milliseconds in a day.
|
|
73
|
+
*/
|
|
74
|
+
export declare const MILLISECONDS_PER_DAY: number;
|
|
75
|
+
/**
|
|
76
|
+
* The number of milliseconds in a second.
|
|
77
|
+
*/
|
|
78
|
+
export declare const MILLISECONDS_PER_SECOND: Milliseconds;
|
|
79
|
+
export declare const RADIUS_OF_EARTH = 6371;
|
|
80
|
+
export declare const earthGravityParam = 398600.4415;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Full circle in radians (PI * 2)
|
|
3
|
+
*
|
|
4
|
+
* https://tauday.com/tau-manifesto
|
|
5
|
+
*/
|
|
6
|
+
export const TAU = (2.0 * Math.PI);
|
|
7
|
+
/**
|
|
8
|
+
* Represents half of the mathematical constant PI.
|
|
9
|
+
*/
|
|
10
|
+
export const halfPi = (0.5 * Math.PI);
|
|
11
|
+
/**
|
|
12
|
+
* Converts degrees to radians.
|
|
13
|
+
*/
|
|
14
|
+
export const DEG2RAD = (Math.PI / 180.0);
|
|
15
|
+
/**
|
|
16
|
+
* Converts radians to degrees.
|
|
17
|
+
*/
|
|
18
|
+
export const RAD2DEG = (180.0 / Math.PI);
|
|
19
|
+
/**
|
|
20
|
+
* Conversion factor from seconds to degrees.
|
|
21
|
+
*/
|
|
22
|
+
export const sec2deg = (1.0 / 60.0 / 60.0);
|
|
23
|
+
/**
|
|
24
|
+
* Conversion factor from seconds to days.
|
|
25
|
+
*/
|
|
26
|
+
export const sec2day = sec2deg / 24.0;
|
|
27
|
+
/**
|
|
28
|
+
* Conversion factor from arcseconds to radians.
|
|
29
|
+
*/
|
|
30
|
+
export const asec2rad = (sec2deg * DEG2RAD);
|
|
31
|
+
/**
|
|
32
|
+
* Convert ten-thousandths of an arcsecond to radians.
|
|
33
|
+
*/
|
|
34
|
+
export const ttasec2rad = (asec2rad / 10000.0);
|
|
35
|
+
/**
|
|
36
|
+
* Convert milliarcseconds to radians.
|
|
37
|
+
*/
|
|
38
|
+
export const masec2rad = (asec2rad / 1000.0);
|
|
39
|
+
/**
|
|
40
|
+
* The angular velocity of the Earth in radians per second.
|
|
41
|
+
*/
|
|
42
|
+
export const angularVelocityOfEarth = 7.292115e-5;
|
|
43
|
+
/**
|
|
44
|
+
* Astronomical unit in kilometers.
|
|
45
|
+
*/
|
|
46
|
+
export const astronomicalUnit = 149597870.0;
|
|
47
|
+
// / Convert milliseconds to seconds.
|
|
48
|
+
export const msec2sec = 1e-3;
|
|
49
|
+
// / Speed of light.
|
|
50
|
+
export const cMPerSec = 299792458;
|
|
51
|
+
export const cKmPerSec = 299792458 / 1000;
|
|
52
|
+
export const cKmPerMs = 299792458 / 1000 / 1000;
|
|
53
|
+
// / Milliseconds per day.
|
|
54
|
+
export const MS_PER_DAY = 86400000;
|
|
55
|
+
// / Seconds per day.
|
|
56
|
+
export const secondsPerDay = 86400.0;
|
|
57
|
+
// / Convert seconds to minutes.
|
|
58
|
+
export const sec2min = (1.0 / 60.0);
|
|
59
|
+
// / Seconds per sidereal day.
|
|
60
|
+
export const secondsPerSiderealDay = 86164.0905;
|
|
61
|
+
// / Seconds per week.
|
|
62
|
+
export const secondsPerWeek = secondsPerDay * 7.0;
|
|
63
|
+
/**
|
|
64
|
+
* Half the number of radians in a circle.
|
|
65
|
+
*/
|
|
66
|
+
export const PI = Math.PI;
|
|
67
|
+
export const x2o3 = 2.0 / 3.0;
|
|
68
|
+
export const temp4 = 1.5e-12;
|
|
69
|
+
/**
|
|
70
|
+
* The number of minutes in a day.
|
|
71
|
+
*/
|
|
72
|
+
export const MINUTES_PER_DAY = 1440;
|
|
73
|
+
/**
|
|
74
|
+
* The number of milliseconds in a day.
|
|
75
|
+
*/
|
|
76
|
+
export const MILLISECONDS_TO_DAYS = 1.15741e-8;
|
|
77
|
+
/**
|
|
78
|
+
* The number of milliseconds in a day.
|
|
79
|
+
*/
|
|
80
|
+
export const MILLISECONDS_PER_DAY = 1000 * 60 * 60 * 24;
|
|
81
|
+
/**
|
|
82
|
+
* The number of milliseconds in a second.
|
|
83
|
+
*/
|
|
84
|
+
export const MILLISECONDS_PER_SECOND = 1000;
|
|
85
|
+
export const RADIUS_OF_EARTH = 6371; // Radius of Earth in kilometers
|
|
86
|
+
export const earthGravityParam = 398600.4415;
|
|
87
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,CAAY,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,CAAY,CAAC;AAEjD;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,CAAY,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAY,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAG,GAAG,IAAI,GAAG,IAAI,CAAY,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAW,OAAO,GAAG,IAAI,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAAO,GAAG,OAAO,CAAY,CAAC;AAEvD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAY,CAAC;AAE1D;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAY,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAE5C,qCAAqC;AACrC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAe,CAAC;AAExC,oBAAoB;AACpB,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAC;AAClC,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC;AAC1C,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhD,0BAA0B;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC;AAEnC,qBAAqB;AACrB,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC;AAErC,gCAAgC;AAChC,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAG,GAAG,IAAI,CAAY,CAAC;AAE/C,8BAA8B;AAC9B,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;AAEhD,sBAAsB;AACtB,MAAM,CAAC,MAAM,cAAc,GAAW,aAAa,GAAG,GAAG,CAAC;AAE1D;;GAEG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAa,CAAC;AAErC,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;AAC9B,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAe,CAAC;AAE/C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;AAE/C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAS,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE9D;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAiB,IAAI,CAAC;AAE1D,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,CAAC,gCAAgC;AAErE,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC"}
|
|
@@ -1,4 +1,232 @@
|
|
|
1
1
|
import { DifferentiableFunction } from '../main.js';
|
|
2
|
+
import { AngularDiameterMethod } from '../enums/AngularDiameterMethod.js';
|
|
3
|
+
import { AngularDistanceMethod } from '../enums/AngularDistanceMethod.js';
|
|
4
|
+
import { EcfVec3, Kilometers, KilometersPerSecond, Radians, SpaceObjectType } from '../types/types.js';
|
|
5
|
+
/**
|
|
6
|
+
* Calculates the factorial of a given number.
|
|
7
|
+
* @param n - The number to calculate the factorial for.
|
|
8
|
+
* @returns The factorial of the given number.
|
|
9
|
+
*/
|
|
10
|
+
export declare function factorial(n: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* Calculates the base 10 logarithm of a number.
|
|
13
|
+
* @param x - The number to calculate the logarithm for.
|
|
14
|
+
* @returns The base 10 logarithm of the input number.
|
|
15
|
+
*/
|
|
16
|
+
export declare function log10(x: number): number;
|
|
17
|
+
/**
|
|
18
|
+
* Calculates the hyperbolic secant of a number.
|
|
19
|
+
* @param x - The number to calculate the hyperbolic secant of.
|
|
20
|
+
* @returns The hyperbolic secant of the given number.
|
|
21
|
+
*/
|
|
22
|
+
export declare function sech(x: number): number;
|
|
23
|
+
/**
|
|
24
|
+
* Calculates the hyperbolic cosecant of a number.
|
|
25
|
+
* @param x - The number for which to calculate the hyperbolic cosecant.
|
|
26
|
+
* @returns The hyperbolic cosecant of the given number.
|
|
27
|
+
*/
|
|
28
|
+
export declare function csch(x: number): number;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the inverse hyperbolic cosecant of a number.
|
|
31
|
+
* @param x - The number to calculate the inverse hyperbolic cosecant of.
|
|
32
|
+
* @returns The inverse hyperbolic cosecant of the given number.
|
|
33
|
+
*/
|
|
34
|
+
export declare function acsch(x: number): number;
|
|
35
|
+
/**
|
|
36
|
+
* Calculates the inverse hyperbolic secant (asech) of a number.
|
|
37
|
+
* @param x - The number to calculate the inverse hyperbolic secant of.
|
|
38
|
+
* @returns The inverse hyperbolic secant of the given number.
|
|
39
|
+
*/
|
|
40
|
+
export declare function asech(x: number): number;
|
|
41
|
+
/**
|
|
42
|
+
* Calculates the inverse hyperbolic cotangent (acoth) of a number.
|
|
43
|
+
* @param x - The number to calculate the acoth of.
|
|
44
|
+
* @returns The inverse hyperbolic cotangent of the given number.
|
|
45
|
+
*/
|
|
46
|
+
export declare function acoth(x: number): number;
|
|
47
|
+
/**
|
|
48
|
+
* Copies the sign of the second number to the first number.
|
|
49
|
+
* @param mag - The magnitude of the number.
|
|
50
|
+
* @param sgn - The sign of the number.
|
|
51
|
+
* @returns The number with the magnitude of `mag` and the sign of `sgn`.
|
|
52
|
+
*/
|
|
53
|
+
export declare function copySign(mag: number, sgn: number): number;
|
|
54
|
+
/**
|
|
55
|
+
* Evaluates a polynomial function at a given value.
|
|
56
|
+
* @param x - The value at which to evaluate the polynomial.
|
|
57
|
+
* @param coeffs - The coefficients of the polynomial.
|
|
58
|
+
* @returns The result of evaluating the polynomial at the given value.
|
|
59
|
+
*/
|
|
60
|
+
export declare function evalPoly(x: number, coeffs: Float64Array): number;
|
|
61
|
+
/**
|
|
62
|
+
* Concatenates two Float64Arrays into a new Float64Array.
|
|
63
|
+
* @param a - The first Float64Array.
|
|
64
|
+
* @param b - The second Float64Array.
|
|
65
|
+
* @returns A new Float64Array containing the concatenated values of `a` and `b`.
|
|
66
|
+
*/
|
|
67
|
+
export declare function concat(a: Float64Array, b: Float64Array): Float64Array;
|
|
68
|
+
/**
|
|
69
|
+
* Calculates the angle in the half-plane that best matches the given angle.
|
|
70
|
+
* @param angle - The angle to be matched.
|
|
71
|
+
* @param match - The angle to be matched against.
|
|
72
|
+
* @returns The angle in the half-plane that best matches the given angle.
|
|
73
|
+
*/
|
|
74
|
+
export declare function matchHalfPlane(angle: number, match: number): number;
|
|
75
|
+
/**
|
|
76
|
+
* Wraps an angle to the range [-π, π].
|
|
77
|
+
* @param theta - The angle to wrap.
|
|
78
|
+
* @returns The wrapped angle.
|
|
79
|
+
*/
|
|
80
|
+
export declare function wrapAngle(theta: Radians): Radians;
|
|
81
|
+
/**
|
|
82
|
+
* Calculates the angular distance between two points on a sphere.
|
|
83
|
+
* @param lam1 The longitude of the first point.
|
|
84
|
+
* @param phi1 The latitude of the first point.
|
|
85
|
+
* @param lam2 The longitude of the second point.
|
|
86
|
+
* @param phi2 The latitude of the second point.
|
|
87
|
+
* @param method The method to use for calculating the angular distance. Defaults to AngularDistanceMethod.Cosine.
|
|
88
|
+
* @returns The angular distance between the two points.
|
|
89
|
+
* @throws Error if an invalid angular distance method is provided.
|
|
90
|
+
*/
|
|
91
|
+
export declare function angularDistance(lam1: number, phi1: number, lam2: number, phi2: number, method?: AngularDistanceMethod): Radians;
|
|
92
|
+
/**
|
|
93
|
+
* Calculates the angular diameter of an object.
|
|
94
|
+
* @param diameter - The diameter of the object.
|
|
95
|
+
* @param distance - The distance to the object.
|
|
96
|
+
* @param method - The method used to calculate the angular diameter. Defaults to AngularDiameterMethod.Sphere.
|
|
97
|
+
* @returns The angular diameter of the object.
|
|
98
|
+
* @throws Error if an invalid angular diameter method is provided.
|
|
99
|
+
*/
|
|
100
|
+
export declare function angularDiameter(diameter: number, distance: number, method?: AngularDiameterMethod): number;
|
|
101
|
+
/**
|
|
102
|
+
* Performs linear interpolation between two points.
|
|
103
|
+
* @param x - The x-coordinate to interpolate.
|
|
104
|
+
* @param x0 - The x-coordinate of the first point.
|
|
105
|
+
* @param y0 - The y-coordinate of the first point.
|
|
106
|
+
* @param x1 - The x-coordinate of the second point.
|
|
107
|
+
* @param y1 - The y-coordinate of the second point.
|
|
108
|
+
* @returns The interpolated y-coordinate corresponding to the given x-coordinate.
|
|
109
|
+
*/
|
|
110
|
+
export declare function linearInterpolate(x: number, x0: number, y0: number, x1: number, y1: number): number;
|
|
111
|
+
/**
|
|
112
|
+
* Calculates the mean value of an array of numbers.
|
|
113
|
+
* @param values - The array of numbers.
|
|
114
|
+
* @returns The mean value of the numbers.
|
|
115
|
+
*/
|
|
116
|
+
export declare function mean(values: number[]): number;
|
|
117
|
+
/**
|
|
118
|
+
* Calculates the standard deviation of an array of numbers.
|
|
119
|
+
* @param values - The array of numbers.
|
|
120
|
+
* @param isSample - Optional. Specifies whether the array represents a sample. Default is false.
|
|
121
|
+
* @returns The standard deviation of the array.
|
|
122
|
+
*/
|
|
123
|
+
export declare function std(values: number[], isSample?: boolean): number;
|
|
124
|
+
/**
|
|
125
|
+
* Calculates the covariance between two arrays.
|
|
126
|
+
* @param a - The first array.
|
|
127
|
+
* @param b - The second array.
|
|
128
|
+
* @param isSample - Optional. Specifies whether the arrays represent a sample. Default is false.
|
|
129
|
+
* @returns The covariance between the two arrays.
|
|
130
|
+
*/
|
|
131
|
+
export declare function covariance(a: number[], b: number[], isSample?: boolean): number;
|
|
132
|
+
/**
|
|
133
|
+
* Calculates the gamma function of a number.
|
|
134
|
+
* @param n - The input number.
|
|
135
|
+
* @returns The gamma function value.
|
|
136
|
+
*/
|
|
137
|
+
export declare function gamma(n: number): number;
|
|
138
|
+
/**
|
|
139
|
+
* Calculates the eccentric anomaly (e0) and true anomaly (nu) using Newton's method
|
|
140
|
+
* for a given eccentricity (ecc) and mean anomaly (m).
|
|
141
|
+
* @param ecc - The eccentricity of the orbit.
|
|
142
|
+
* @param m - The mean anomaly.
|
|
143
|
+
* @returns An object containing the eccentric anomaly (e0) and true anomaly (nu).
|
|
144
|
+
*/
|
|
145
|
+
export declare function newtonM(ecc: number, m: number): {
|
|
146
|
+
e0: number;
|
|
147
|
+
nu: number;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Calculates the eccentric anomaly (e0) and mean anomaly (m) using Newton's method
|
|
151
|
+
* for a given eccentricity (ecc) and true anomaly (nu).
|
|
152
|
+
* @param ecc - The eccentricity of the orbit.
|
|
153
|
+
* @param nu - The true anomaly.
|
|
154
|
+
* @returns An object containing the calculated eccentric anomaly (e0) and mean anomaly (m).
|
|
155
|
+
*/
|
|
156
|
+
export declare function newtonNu(ecc: number, nu: number): {
|
|
157
|
+
e0: number;
|
|
158
|
+
m: Radians;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Creates a 2D array with the specified number of rows and columns, filled with the same given value.
|
|
162
|
+
* @template T The type of elements in the array.
|
|
163
|
+
* @param rows The number of rows in the 2D array.
|
|
164
|
+
* @param columns The number of columns in the 2D array.
|
|
165
|
+
* @param value The value to fill the array with.
|
|
166
|
+
* @returns The 2D array with the specified number of rows and columns, filled with the given value.
|
|
167
|
+
*/
|
|
168
|
+
export declare function array2d<T>(rows: number, columns: number, value: T): T[][];
|
|
169
|
+
/**
|
|
170
|
+
* Clamps a number between a minimum and maximum value.
|
|
171
|
+
* @param x The number to clamp.
|
|
172
|
+
* @param min The minimum value.
|
|
173
|
+
* @param max The maximum value.
|
|
174
|
+
* @returns The clamped number.
|
|
175
|
+
*/
|
|
176
|
+
export declare function clamp(x: number, min: number, max: number): number;
|
|
177
|
+
/**
|
|
178
|
+
* Determines whether a given year is a leap year.
|
|
179
|
+
* @param dateIn The date to check.
|
|
180
|
+
* @returns `true` if the year is a leap year, `false` otherwise.
|
|
181
|
+
*/
|
|
182
|
+
export declare function isLeapYear(dateIn: Date): boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Calculates the day of the year for a given date.
|
|
185
|
+
* If no date is provided, the current date is used.
|
|
186
|
+
*
|
|
187
|
+
* This is sometimes referred to as the Jday, but is
|
|
188
|
+
* very different from the Julian day used in astronomy.
|
|
189
|
+
* @param date - The date for which to calculate the day of the year.
|
|
190
|
+
* @returns The day of the year as a number.
|
|
191
|
+
*/
|
|
192
|
+
export declare function getDayOfYear(date?: Date): number;
|
|
193
|
+
/**
|
|
194
|
+
* Rounds a number to a specified number of decimal places.
|
|
195
|
+
* @param value - The number to round.
|
|
196
|
+
* @param places - The number of decimal places to round to.
|
|
197
|
+
* @returns The rounded number.
|
|
198
|
+
*/
|
|
199
|
+
export declare function toPrecision(value: number, places: number): number;
|
|
200
|
+
/**
|
|
201
|
+
* Returns the sign of a number.
|
|
202
|
+
* @param value - The number to determine the sign of.
|
|
203
|
+
* @returns 1 if the number is positive, -1 if the number is negative.
|
|
204
|
+
*/
|
|
205
|
+
export declare function sign(value: number): 1 | -1;
|
|
206
|
+
/**
|
|
207
|
+
* Converts a SpaceObjectType to a string representation.
|
|
208
|
+
* @param spaceObjType - The SpaceObjectType to convert.
|
|
209
|
+
* @returns The string representation of the SpaceObjectType.
|
|
210
|
+
*/
|
|
211
|
+
export declare const spaceObjType2Str: (spaceObjType: SpaceObjectType) => string;
|
|
212
|
+
/**
|
|
213
|
+
* Calculates the Doppler factor for a given location, position, and velocity.
|
|
214
|
+
* The Doppler factor is a measure of the change in frequency or wavelength of a wave
|
|
215
|
+
* as observed by an observer moving relative to the source of the wave.
|
|
216
|
+
* @param location - The location vector of the observer.
|
|
217
|
+
* @param position - The position vector of the source.
|
|
218
|
+
* @param velocity - The velocity vector of the source.
|
|
219
|
+
* @returns The calculated Doppler factor.
|
|
220
|
+
*/
|
|
221
|
+
export declare const dopplerFactor: (location: EcfVec3<Kilometers>, position: EcfVec3<Kilometers>, velocity: EcfVec3<KilometersPerSecond>) => number;
|
|
222
|
+
/**
|
|
223
|
+
* Creates an array of numbers from start to stop (inclusive) with the specified step.
|
|
224
|
+
* @param start The starting number.
|
|
225
|
+
* @param stop The ending number.
|
|
226
|
+
* @param step The step value.
|
|
227
|
+
* @returns An array of numbers.
|
|
228
|
+
*/
|
|
229
|
+
export declare function createVec(start: number, stop: number, step: number): number[];
|
|
2
230
|
/**
|
|
3
231
|
* Calculates the derivative of a differentiable function.
|
|
4
232
|
* @param f The differentiable function.
|