the invention concerns an angle sensor and a method of measuring an angle of a magnetic field . the angle sensor is configured to measure a direction of a magnetic field in a plane , comprising a first magnetic field sensor having a first sensitivity direction and delivering a first voltage , a second magnetic field sensor having a second sensitivity direction and delivering a second voltage , a first current source supplying a first biasing current to the first magnetic field sensor , a second current source supplying a second biasing current to the second magnetic field sensor , and electronic circuitry configured to adjust the first biasing current and the second biasing current in such a manner that a sum of the first voltage and the second voltage equals 0 .