I have two configurations (set of points, each with its x and y coordinate) that should be compared.

In order to do this, I should perform the operation so that both configurations are centered at the origin.

I understand that the operations are to be performed on x and y axis, but I'm not sure how to do this.

Any suggestions are welcome.