starfall/astronomy/stellar_neighborhood/constants/
mod.rs

1/// The radius of our stellar neighborhood.
2///
3/// This may be flexible or changed at some point, but for the time being I'm
4/// thinking about fairly conventional fantasy systems where interstellar
5/// travel isn't a thing.
6///
7/// Measured in Ly, or light years.
8pub const STELLAR_NEIGHBORHOOD_RADIUS: f64 = 10.0;
9
10/// The stellar density of our (stellar) neighborhood.
11///
12/// As above, this is currently set to be fairly conventional.
13///
14/// Measured in s/ly^3, or stars per cubic light year.
15pub const STELLAR_NEIGHBORHOOD_DENSITY: f64 = 0.004;