Wave direction and frequency (period) are two factors that influence the effect of waves on a moored ship. Whether the ship responds by surging, swaying or yawing will depend on whether the waves are striking the moored vessel head-on, beam-on or quartering, the frequency of the waves and the manner in which the tanker is moored.
Source: wiktionary