Fix center calculation for rotated rectangle
Fix docking on rotated stations