Two sensor units are formed from magnetoresistive material. Elements of the first
sensor unit have a total anisotropy field in a first direction. Elements of the
second sensor unit have a total anisotropy field in a second direction. An integral
coil sets a direction of magnetization in the elements of the first and second
sensor units. An output of the first sensor unit is representative of magnetic
field components perpendicular to the first direction and an output of the second
sensor is representative of magnetic field components perpendicular to the second direction.