Here's one way to do this...but maybe not the most efficient
Move "B" to the origin ....so ( 1 - 1, - 4 + 4) = (0, 0)
Apply the same transformation to "A" and we have
(5 -1, 3 + 4) = ( 4, 7)
Rotating this point 90° counter-clockwise produces (-7, 4)
Now.......reverse the original transformation and we have
(-7 + 1, 4 - 4) = (-6, 0) = A'
