I don't see why it'd be different if enemies were close to you or not. If it costs AP to switch weapons from hand to hand, it's gonna do so no matter what. That seems fairly obvious to me.