Does it mean that the wind is coming from east to west. Or is it meaning that the wind is coming from west to east?
One interpretation of the question, in its original form, was What does the phrase "in the wind direction" mean? This is an answer to that question.
The phrase "in the wind direction" is ambiguous. It is not common terminology. It could possibly mean either pointing "upwind", i.e., into the oncoming wind or pointing "downwind", i.e., in the same direction as the wind?
Given that a boat is moored, presumably away from any dock, then it is likely that it is pointing into the oncoming wind.
However, if there is significant water current present, then it is quite possible that the boat is pointing upstream, i.e., opposite to the water flow.