Sometimes, ships maneuver perilously close to each other. When this happens, the moving ship must alter its course to avoid a collision.