/// Determine whether a ship can dock to a planet.
Determine whether a ship can dock to a planet.
Determine whether a ship can dock to a planet .
pub fn can_dock(&self, planet: &Planet) -> bool {
        if self.is_docked() {
            return false
        }
        self.distance_with(planet) <= (DOCK_RADIUS + planet.radius + SHIP_RADIUS)
    }
pub fn can_dock ( & self , planet : & Planet ) -> bool { if self . is_docked ( ) { return false } self . distance_with ( planet ) <= ( DOCK_RADIUS + planet . radius + SHIP_RADIUS ) }
Determine whether a ship can dock to a planet.
Determine whether a ship can dock to a planet .
&self
planet
&Planet