A Halbach array is formed from first to third magnets (28a to 28c) provided to a rotor (16). Of shortest straight-line distances (clearance distances) between the first to third magnets (28a to 28c) and a Hall element (30) as facing the first to third magnets (28a to 28c) after moving relative to…