A magnetic field has both a strength and a direction at each point in space. For example, at each point Earth, the magnetic field -- and thus a compass -- points in a particular direction, roughly toward the North. Magnetic fields are therefore generally represented as lines: the direction of the line gives the direction of the field, and the number of lines indicates the strength