summaryrefslogtreecommitdiffstats
path: root/src/solar_system/orbit.rs
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-05-07 10:12:11 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-05-07 10:12:11 -0400
commitc9041e2e6fe59d6127bb1085b874e8e3cda8000e (patch)
treec339cf86b88743b1c74707f6d714b1a0950c43ff /src/solar_system/orbit.rs
parentc1adf64c1aaecd5a2b9d532d707ef35971f1aa18 (diff)
downloadsystemic4x-c9041e2e6fe59d6127bb1085b874e8e3cda8000e.tar.gz
systemic4x-c9041e2e6fe59d6127bb1085b874e8e3cda8000e.tar.bz2
systemic4x-c9041e2e6fe59d6127bb1085b874e8e3cda8000e.zip
more intense position-relative rendering to fix some precision problems
Diffstat (limited to 'src/solar_system/orbit.rs')
-rw-r--r--src/solar_system/orbit.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/solar_system/orbit.rs b/src/solar_system/orbit.rs
index 1800127..3a1d129 100644
--- a/src/solar_system/orbit.rs
+++ b/src/solar_system/orbit.rs
@@ -63,6 +63,8 @@ impl StaticOrbit
self.parent
}
+ pub fn sma(&self) -> Kilometers { self.semi_major_axis }
+
pub fn calculate_position_at(
&self,
sgp: f64,