Support flipping paths on either axis.