
A ship at sea moves in six degrees of motion: heave, sway, surge, roll, pitch and yaw. The first three are linear motions. Heaving is the linear motion along the vertical Z-axis, swaying is the motion along the transverse Y-axis, and surging is the motion along the longitudinal X-axis. Rolling is a rotation around a longitudinal axis, pitching is a rotation around the transverse axis and yawing is a rotation around the vertical axis.