[futurebasic] Re: [FB] How do you find the point where two lines cross?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: Peter Bancroft <pbancroft@...>
Date: Thu, 3 Jun 1999 22:19:05 +1000
>I want to write a function that will take the x and y coordinates of the end
>points of two lines and return the coordinates of the point where the lines
>cross, if they do.


You need to know some more info about the lines before you can do this.
You need to know the slope of the line.
If they are straight lines then any other point on the line will do for you
to calculate the slopes and hence the intersection points.

If they are not straight lines then   aarrgghhh   splat.

whoops fell off the equation.

Peter		mailto:peter@...		http://www.isoma.com