Dear all.<br><br>I'm using vtkPCAStatistics to calculate the principle directions (eigenvector) of two sets of 2D points. Then use the eigenvectors to compute the angles between these two sets. The pointset1 is the target set and I'm trying to rotate pointset2 with the same angle. I follow the steps in <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/vtkPCAStatistics">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/vtkPCAStatistics</a>.<br>
<br>However, I found that when the angle is bigger than 45 degrees, the direction of pointset2 goes to the opposite way it supposed to be.<br><br>Is that because of I missed any step in the calculation? Can anyone give me some advice?<br>
<br>Thank you very much in advance.<br><br>Best wishes<br>Wenlong<br>