The magnetic field of a magnetic dipole depends on the strength and direction of a magnet's magnetic moment m but drops off as the cube of the distance such that: H ( r ) = 1 4 π π ( 3 r ( m ⋅ ⋅ r ) | r | 5 − − m | r | 3 ) ,