Reflection over Y = X
Similarly, when a point is reflected across the line y = -x, the x-coordinates and y-coordinates change their place and are negated. Therefore, The reflection of the point (x, y) across the line y = x is (y, x). The reflection of the point (x, y) across the line y = – x is (-y, -x).
Hope this helps!