I have a surface (square, real object) that is a bit tilted (not parallel to the ground). Now, for this surface, I measured the coordinates (x,y and most important z) of 3 of its corners (centimeters), relative to the ground on which the surface stays (let's say that the bottom-left corner is x=0,y=0).
I need to know towards which direction is this plane inclined (relative to an imaginary vertical line that goes through the middle of the surface).
I guess I actually need two angles. One will give the tilt on the x-axis, and the other the tilt on the y-axis.
If you know three points in the plane then you can calculate two vectors in the plane (if the three points are $(x_0, y_0, z_0)$, $(x_1, y_1, z_1)$, $(x_2, y_2, z_2)$ then $<x_1-x_0, y_1-y_0, z_1-z_0>$ and $<x_2-x_0, y_2-y_0, z_2-z_0>$ are vectors lying in the plane). The angle between either of those vectors and the given line is the angle between the plane and the line.