The branch of anatomy that focuses on the structure and function of the eye and its associated structures.