Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!davis From: davis@pacific.mps.ohio-state.edu ("John E. Davis") Newsgroups: comp.graphics Subject: silly question: How do I draw a cubic spline? Message-ID: Date: 9 Dec 90 21:44:33 GMT Sender: news@pacific.mps.ohio-state.edu Reply-To: davis@pacific.mps.ohio-state.edu (John E. Davis) Distribution: comp Organization: "Dept. of Physics, The Ohio State University" Lines: 16 Hi, What is the most efficient algorithm to draw a cubic polynomial on a 2-d grid? I can always calculate the xy values and draw a line from one to the next but there must be a better way. For example, I am sure that one does not draw a circle from its equation (x = r cos q, y = r sin q). I looked in the fac sheet but the closest I found was drawing circles via splines. Well, how do I draw a cubic spline? Ultimately, drawing curves amounts to turning on pixels. How do I choose which pixels to turn on? -- John bitnet: davis@ohstpy internet: davis@pacific.mps.ohio-state.edu