How to determine pitch and roll of a rectangle knowing $(x,y,z)$ corner points?

503 Views Asked by At

So let's say I have a rectangle with four corner points, and that I know the $(x,y,z)$ position of each point. How would I go about finding the pitch and roll of that rectangle?

enter image description here