Euclidean self-calibration via the modulus constraint