Line Transfer in the Presence of Two-Dimensional Velocity Gradients