improve houses and bump a version
Release / Build x86_64-unknown-linux-gnu (push) Has been cancelled
Release / Build aarch64-apple-darwin (push) Has been cancelled
Release / Build x86_64-apple-darwin (push) Has been cancelled
Release / Build x86_64-pc-windows-gnu (push) Has been cancelled

This commit is contained in:
Bendik Aagaard Lynghaug
2026-03-23 15:55:15 +01:00
parent 2ae47f37a8
commit 8b37369bf8
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ members = [
resolver = "2"
[workspace.package]
version = "0.3.3"
version = "0.3.4"
edition = "2021"
license = "AGPL-3.0-or-later"
+4 -4
View File
@@ -198,11 +198,11 @@ fn placidus_cusps(ramc: f64, lat: f64, eps: f64, mc: f64, asc: f64) -> [f64; 12]
cusps[i] = ra_to_ecl_lon(ra, eps_r);
}
// H2, H3: 1/3 and 2/3 of the nocturnal semi-arc from IC *toward ASC*.
// This arc runs in the *decreasing* RA direction (IC_RA → ASC_RA),
// so we use negative fractions to step backward from IC.
// H3 = 1/3 of the nocturnal semi-arc from IC toward ASC (closer to IC).
// H2 = 2/3 of the nocturnal semi-arc from IC toward ASC (closer to ASC).
// The arc runs in the *decreasing* RA direction, so fracs are negative.
let ic_ra = (ramc + 180.0).rem_euclid(360.0);
for (i, frac) in [(1usize, -1.0_f64 / 3.0), (2, -2.0 / 3.0)] {
for (i, frac) in [(1usize, -2.0_f64 / 3.0), (2, -1.0 / 3.0)] {
let ra = placidus_iter(ic_ra, frac, phi, eps_r, false);
cusps[i] = ra_to_ecl_lon(ra, eps_r);
}