The direction and force experienced on a moving ship is the apparent wind. This is the resultant of true wind and ship’s reversed movement (same speed but opposite course). This is illustrated in the following diagram.
Knowing any of the two above, third can be found by simple vector calculation.
The wind is name by the direction from which it comes.