private Dictionary <string, float> GetSpaceBetween(Ship.GenericShip thisShip, Ship.GenericShip anotherShip) { Dictionary <string, float> result = new Dictionary <string, float>(); Dictionary <string, float> thisShipBounds = thisShip.GetBounds(); Dictionary <string, float> anotherShipBounds = anotherShip.GetBounds(); result.Add("Left", thisShipBounds["minX"] - anotherShipBounds["maxX"]); result.Add("Right", anotherShipBounds["minX"] - thisShipBounds["maxX"]); result.Add("Down", thisShipBounds["minZ"] - anotherShipBounds["maxZ"]); result.Add("Up", anotherShipBounds["minZ"] - thisShipBounds["maxZ"]); return(result); }