I have a set of points that are the vertices of a polygon. Those points are in the same (arbitrary) plane. I want to move/rotate them so that the polygon sits in the $xz$ plane, (so that all vertices have a $y=0$ coordinate) without deforming it.
I guess the method would imply finding the plane coordinates, finding out which transform puts said plane in the $xz$ plane, and then using that transformation for all points, but I have no idea about how to do it in practice.