@essrt/physics 1.0.0 → 1.2.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/README.md +50 -0
- package/package.json +1 -1
- package/src/constants/coefficients.js +2 -2
- package/src/constants/generated.d.ts +4 -0
- package/src/constants/generated.js +6 -0
- package/src/constants/index.js +1 -1
- package/src/index.js +46 -11
- package/src/model.js +856 -0
- package/src/planets/asc-node-integrator.cjs +1 -1
- package/src/reference/published-curves.cjs +2 -1
|
@@ -113,7 +113,7 @@ function integrateAscendingNode(tilt, currentYear, deps) {
|
|
|
113
113
|
|
|
114
114
|
const effectFromEpoch = integrateEffect(EPOCH_YEAR, currentYear);
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
const newOmega = staticOmega + effectFromEpoch;
|
|
117
117
|
return ((newOmega % 360) + 360) % 360;
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -165,7 +165,8 @@ function perihelionLa2004(year) {
|
|
|
165
165
|
const i = Math.floor(idx);
|
|
166
166
|
if (i >= _LA2004.length - 1) return _LA2004[_LA2004.length - 1][3];
|
|
167
167
|
const frac = idx - i;
|
|
168
|
-
|
|
168
|
+
const v0 = _LA2004[i][3];
|
|
169
|
+
let v1 = _LA2004[i + 1][3];
|
|
169
170
|
// Unwrap: if values jump by more than 180°, adjust
|
|
170
171
|
if (v1 - v0 > 180) v1 -= 360;
|
|
171
172
|
else if (v0 - v1 > 180) v1 += 360;
|