Algorithm for drawing ellipses or hyperbolae with a digital plotter