pub struct IoRotation {
pub sidereal_period_s: f64,
pub synodic_period_s: f64,
pub axial_tilt_deg: f64,
pub synchronous: bool,
}Fields§
§sidereal_period_s: f64§synodic_period_s: f64§axial_tilt_deg: f64§synchronous: boolImplementations§
Source§impl IoRotation
impl IoRotation
Sourcepub fn new() -> Self
pub fn new() -> Self
Examples found in repository?
examples/orbital_sim.rs (line 9)
1fn main() {
2 let orbit = ioss::physics::orbit::IoOrbit::new();
3 println!("Semi-major: {:.0} m", orbit.semi_major_axis_m);
4 println!("Period: {:.2} days", orbit.orbital_period_s() / 86_400.0);
5 println!(
6 "Speed: {:.1} m/s",
7 orbit.orbital_speed_m_s(orbit.semi_major_axis_m)
8 );
9 let rot = ioss::physics::rotation::IoRotation::new();
10 println!("Synchronous: {}", rot.synchronous);
11 println!("Equatorial speed: {:.2} m/s", rot.equatorial_speed_m_s());
12}pub fn angular_velocity_rad_s(&self) -> f64
Sourcepub fn equatorial_speed_m_s(&self) -> f64
pub fn equatorial_speed_m_s(&self) -> f64
Examples found in repository?
examples/orbital_sim.rs (line 11)
1fn main() {
2 let orbit = ioss::physics::orbit::IoOrbit::new();
3 println!("Semi-major: {:.0} m", orbit.semi_major_axis_m);
4 println!("Period: {:.2} days", orbit.orbital_period_s() / 86_400.0);
5 println!(
6 "Speed: {:.1} m/s",
7 orbit.orbital_speed_m_s(orbit.semi_major_axis_m)
8 );
9 let rot = ioss::physics::rotation::IoRotation::new();
10 println!("Synchronous: {}", rot.synchronous);
11 println!("Equatorial speed: {:.2} m/s", rot.equatorial_speed_m_s());
12}pub fn solar_drift_deg_per_earth_day(&self) -> f64
Trait Implementations§
Source§impl Clone for IoRotation
impl Clone for IoRotation
Source§fn clone(&self) -> IoRotation
fn clone(&self) -> IoRotation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IoRotation
impl Debug for IoRotation
Source§impl Default for IoRotation
impl Default for IoRotation
Source§impl PartialEq for IoRotation
impl PartialEq for IoRotation
impl Copy for IoRotation
impl StructuralPartialEq for IoRotation
Auto Trait Implementations§
impl Freeze for IoRotation
impl RefUnwindSafe for IoRotation
impl Send for IoRotation
impl Sync for IoRotation
impl Unpin for IoRotation
impl UnsafeUnpin for IoRotation
impl UnwindSafe for IoRotation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more