6-DoF (degrees of freedom) localization