P(2,1) and Q(1,2) are points in a plane. Find the bearing of P from Q

1 answer

To find the bearing of P from Q, we need to find the angle between the line passing through P and Q, and the north direction.

First, let's find the slope of the line passing through P and Q:

slope = (y2 - y1) / (x2 - x1)
slope = (2 - 1) / (1 - 2)
slope = -1

Next, we can find the angle between the line and the north direction by taking the arctan of the slope:

angle = arctan(-1)

Using a calculator, we find that angle ≈ -45°.

However, bearings are usually given in degrees clockwise from the north direction. To convert our angle to bearing, we can add 360° and then take the remainder when divided by 360°:

bearing = (angle + 360) % 360
bearing ≈ 315°

Therefore, the bearing of P from Q is approximately 315°.