https://www.gregmat.com/quizzes/quiz/prepswift-rotating-90 (Question 2)
My Approach:
-
Calculate slope of first line where coordinates are (0,0) and (4,5) > Slope is 0-5/0-4 = 5/4
-
Calculate slope of line perpendicular to it. -4/5
-
Calculate coordinates for same > 0-y / 0-x = -4 / 5 in this case y = 4 and x = -5 hence new point should be (-5,4)
Where is my logic faltering?
Kweku
2
If \frac{y}{x} = -\frac{4}{5}, we can have your scenario or y = -4 and x = 5, right?
That is why we need to consider the quadrant the rotated point/line ends up in.
Of course, quadrant 4 has points with positive x-coordinates and negative y-cordinates so that interpretation takes precedence.
Another way you could solve this without slope:
“Rotate” means “swap” the coordinates of your points.
After that, you can assign the correct sign based on the quadrant final point ends up in.