starfall 0.1.0

Astronomical sciences, from the galaxy to the moon, for my Hornvale project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::astronomy::star::Star;

/// Calculate the frost line of a close binary system.
#[named]
pub fn get_frost_line(star1: &Star, star2: &Star) -> f64 {
  trace_enter!();
  let luminosity = star1.luminosity + star2.luminosity;
  trace_var!(luminosity);
  let result = 4.85 * luminosity.sqrt();
  trace_var!(result);
  trace_exit!();
  result
}