A computer-guided system for orienting an insert during a surgical procedure, the computer-guided system comprising:
a surgical table for supporting a patient, the surgical table being capable of movement about three axes;
a table inertial measurement unit for measuring movement of the surgical table;
a patient inertial measurement unit for measuring movement of the patient;
an insert inertial measurement unit for measuring movement of the insert; and
computational means for determining the relative positioning of the patient and the insert based upon movement of the surgical table, movement of the patient, and movement of the insert.