/// <summary>Calculates the effective temperature due to stellar radiation at a specified distance from a star.</summary> /// <param name="star">A star.</param> /// <param name="distance">The distance to the star in [m].</param> /// <returns>The effective temperature at the specified distance from the star in [K].</returns> public static double EffectiveTemperature(Star star, double distance) { return(star.EffectiveTemperature * Sqrt(star.Radius / (2 * distance))); }