Rotate reference system align with points position coordinates

25 Views Asked by At

I have the {x',y'} coordinates values and I'm trying to rotate this blue coordinate system to get {x'',y''}.

The coordinates of P2 point in {x2',y2'} are {200,200} and I know that the final coordinates in {x2'',y2''} are {282.84,0}.

I have calculated the slope of the p1-p2 line in order to get {x2'',y2''} but I don't know how to get {282.84,0}

Description of the problem mentioned aboved

So, how could I get the {x'',y''} of the points P2,P3,P4 in the image?