I have curve that is drawn between point A and B. I want to divide this curve to 100 smaller waypoints. How can I determine what these 100 waypoints are as coordinates, when I only know points A and B?
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.
Here's how it works:
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
The simplest is just to divide the interval in $x$ into $101$ intervals. So if $A=(a_x,a_y)$ and $B=(b_x,b_y)$, use $a_x+i(b_x-a_x)/101$ and find the corresponding $y$ coordinate for $i$ from $1$ to $100$.