A three dimensional magnetic sensor attached to a surgical nail is located based on an applied monotonic magnetic field gradient. Another three dimensional magnetic sensor locates a surgical drill. A display generates a real time image of the relative alignment of the surgical drill and of the surgical nail, allowing a surgeon to repair bone fractures.Un capteur magnétique tridimensionnel fixé à un clou chirurgical est localisé sur la base d'un gradient de champ magnétique monotone appliqué. Un autre capteur magnétique tridimensionnel localise un foret chirurgical. Un dispositif d'affichage génère une image en temps réel de l'alignement relatif du foret chirurgical et du clou chirurgical, permettant à un chirurgien de réparer des fractures osseuses.