Methods, devices, and systems for determining an orientation of a surgical tool during ophthalmic surgery are disclosed. An example method includes performing an optical imaging scan in the surgical site, using a scan pattern that intersects the surgical tool and generating a scan image from the optical imaging scan. The example method further comprises analyzing the scan image to determine a location in the scan image corresponding to where the surgical tool intersected the optical imaging scan, and determining an orientation of the surgical tool, based on the determined location.