I have performed some molecular dynamics simulation and outcome gives position of each atom in Cartesian coordinate system. The outcome looking like this, 
where the yellow atoms some sort of liquid so they move around and red and blue atoms stick together and act as a solid body. Both solid bodies half submerged inside liquid and it can rotate around itself. My aim is to find the approximate angle of inclination that any solid body makes with respect to liquid plane. The angle can vary from 0 to 90 degree. How can I extract the angle from the position of all atoms?
The solid direction can be found either by a PCA on the columns as pointed out by @ad2004 or by a regression to a straight line.
To find the surface normal I propose 2 options: