Method for obtaining the absolute orientation of a sphere in 3d space