Efficient Pool Zig-Zag

Due to Luc Longpre

Problem: Consider a rectangular pool You must swim from the middle of one short end to the middle of the other (opposite) short end. You must touch the two other walls along the way. What is the shortest path you can take and why?