pub fn orbital_zone(luminosity: &f64, distance_to_primary_star: f64) -> i32 {
    if distance_to_primary_star < (4.0 * luminosity.sqrt()) {
        return 1;
    } else if distance_to_primary_star < (15.0 * luminosity.sqrt()) {
        return 2;
    }
    3
}
/// This function, given the orbital radius of a planet in AU, returns the orbital 'zone' of the particle.
This function, given the orbital radius of a planet in AU, returns the orbital 'zone' of the particle.
This function given the orbital radius of a planet in AU returns the orbital ' zone ' of the particle .
pub fn orbital_zone(luminosity: &f64, distance_to_primary_star: f64) -> i32 {
    if distance_to_primary_star < (4.0 * luminosity.sqrt()) {
        return 1;
    } else if distance_to_primary_star < (15.0 * luminosity.sqrt()) {
        return 2;
    }
    3
}
pub fn orbital_zone ( luminosity : & f64 , distance_to_primary_star : f64 ) -> i32 { if distance_to_primary_star < ( 4.0 * luminosity . sqrt ( ) ) { return 1 ; } else if distance_to_primary_star < ( 15.0 * luminosity . sqrt ( ) ) { return 2 ; } 3 }
This function, given the orbital radius of a planet in AU, returns the orbital 'zone' of the particle.
This function given the orbital radius of a planet in AU returns the orbital ' zone ' of the particle .
luminosity
&f64
distance_to_primary_star
f64
luminosity
&f64
distance_to_primary_star
f64