 A magnetic compass is designed to give a horizontal bearing direction, whereas a "vector magnetometer" measures both the magnitude and direction of the total magnetic field.Three orthogonal sensors are required to measure the components of the magnetic field in all three dimensions.They are also rated as "absolute" if the strength of the field can be calibrated from their own known internal constants or "relative" if they need to be calibrated by reference to a known field.