0
$\begingroup$

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?

$\endgroup$
2
  • $\begingroup$ What form does the curve between A and B take? Is it a straight line, an arc of a circle, a cubic spline (the last two will require additional 'control points' to be specified - what are they?) or something else? $\endgroup$ Jun 22, 2011 at 9:37
  • $\begingroup$ Curve can take form of arc of cricle. $\endgroup$
    – newbie
    Jun 22, 2011 at 9:40

1 Answer 1

1
$\begingroup$

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$.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .