17 #ifndef ATOMPROBE_SPATIAL_H 18 #define ATOMPROBE_SPATIAL_H 22 #include <gsl/gsl_matrix.h> 33 const Point3D &r1,
const Point3D &r2, gsl_matrix *m);
39 const Point3D &r1,
const Point3D &r2, std::vector<std:: vector<float> > &m);
54 const std::vector<float> &weights,gsl_matrix* &R);
58 bool testRotationAlgorithms();
void computeRotationMatrix(const Point3D &ur1, const Point3D &ur2, const Point3D &r1, const Point3D &r2, gsl_matrix *m)
unsigned int computeRotationMatrixWahba(const std::vector< Point3D > &unrotated, const std::vector< Point3D > &rotated, const std::vector< float > &weights, gsl_matrix *&R)
Given a series of paired observations of directions, compute the least squares rotation matrix betwee...