A field generator includes multiple planar coils that are arranged in a single plane. At least two of the coils are non-concentric and are wound around respective axes that are not parallel with one another, so as to generate respective magnetic fields that are not parallel with one another.