Fixed special cases of dir=90, dir=270 of wrapping dot field

Fixed special cases of dir=90, dir=270 of wrapping dot field (thanks Dani Linares)
BF, ENH