Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The intersection point between a spline and a line

I'm trying to find a way to calculate the intersection between a b-spline and a straight line. So far Google hasn't been much help.

like image 424
user31238 Avatar asked Oct 24 '08 16:10

user31238


1 Answers

A pure mathematical approach:

  • Transform the spline and the line so that the line lies on the X axis.
  • Calculate the points on the spline where Y = 0 (depends on the order of the spline).
  • Transform these points back to your original cordinate system.

If this is the way you are going I can work out the necessary formulas.

like image 97
Uwe Raabe Avatar answered Nov 09 '22 14:11

Uwe Raabe