In most places in the book and the SRD attacks of opportunity are talked about as if you are using the grid system for 2d fighting, however, when it talks about reach, it gives distances for this and converts the distances into grid spaces. This gives you your reference for determining distance...