I'm pretty weak in the field of mathematics, but a strong programmer. I am looking for a mathematical solution that, given two points on a line will give me a curve between them, including those two points within the curve itself.
For instance, if I have a set of points { (0, 3) (1,10) } I'd like a mathematical way to generate points between the two (I believe this is called interpolate) to create a curve that will contain { (0,3) (1,10) }
Will Linear Interpolation give me this?
Thank you
You could do that, but if a straight line is acceptable, the best-of-breed algorithm for calculating which pixels to plot is Bresenham's algorithm. It is easy to program, produces good-looking output, and it is extremely efficient.
If you are interested in curved curves, you have a lot of choices. People often use cubic splines, because they are graceful, fit together well, and the algorithm is easy to write and runs quickly. There is a variation of Bresenham's algorithm for circular arcs instead of straight lines. If this isn't enough information, you should consider posting another question that elaborates on what you are looking for.