@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.
@@ -113,7 +113,7 @@ function integrateAscendingNode(tilt, currentYear, deps) {
113
113
 
114
114
  const effectFromEpoch = integrateEffect(EPOCH_YEAR, currentYear);
115
115
 
116
- let newOmega = staticOmega + effectFromEpoch;
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
- let v0 = _LA2004[i][3], v1 = _LA2004[i + 1][3];
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;