Archived

This topic is now archived and is closed to further replies.

yogeshpatel4all

Finding Two Intermediate Pts On a Line

Recommended Posts

i have two points , i want two intermediate points between these points,this two(intermediate) points must be in a straight line with end points.. Thank u for any Information..

Share this post


Link to post
Share on other sites
(x, y) = (x0, y0) + k * (xd, yd)

(x0, y0)= one point, (xd, yd)= the other point - the first point
k a parameter between 0 and 1.


blah blah blah.

[edited by - Chris Hare on April 5, 2004 4:06:06 AM]

Share this post


Link to post
Share on other sites
THANK U for Reply....
Waht i want is i have two points ..
and i want another two points between them in same line..

now what u say is :

(x , y ) = (x0 , yo) + k * (x1 , y1)

if (x0 , y0) & (x1 , y1) are two points ,i will get intermediate points by substituting K in he range 0 and 1 .

but is it taking slope into account ?

say for example: (2,4) & (4,2)

(x,y) = (2,4) + k * (4 , 2)

if k = 0.2 x = 2.8 y = 4.4 ;
if k = 0.6 x = 4.4 y = 5.2 ;

but any of this points is not in between the specified points

This is what i Thinks...
so can u tell me more abt it..
Thank U for any Info''tion..



Share this post


Link to post
Share on other sites
Chris Hare's equation refers to the difference between the two points, not the second point. Another way to express it is:

(x, y) = (1-t)*(x0, y0) + t*(x1, y1)


"Sneftel is correct, if rather vulgar." --Flarelocke

[edited by - sneftel on April 5, 2004 5:21:06 AM]

Share this post


Link to post
Share on other sites