I've never been in that situation. I think I seen recommendations where you should swim diagonally toward the shore rather than parallel, maybe that's the logic there. The thing is that there is an current toward the shore on either side of a rip, maybe you can sense the change in pull? Rips only go out so far before the water recirculates back to shore.