The body's equatorial radius in scene units (from its profile: the Moon's for 'moon', else the Earth's).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(TerrainBody), | intent(in) | :: | self |
pure real(wp) function body_radius(self) class(TerrainBody), intent(in) :: self if (self%profile_ == 'moon') then body_radius = moon_radius * self%units_per_meter_ else body_radius = earth_radius * self%units_per_meter_ end if end function body_radius