>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