FEATool  v1.6
Finite Element Analysis Toolbox
 All Files Functions Pages
geom_intersect_lines.m File Reference


GEOM_INTERSECT_LINES Intersections of line segments.

[ S, T, TF ] = GEOM_INTERSECT_LINES( P1, P2 ) Computes the intersection point of two line segments. P1 = [x1 y1; x2 y2] and P2 define the coordinates of the two lines. Outputs are S and T which specify the relative position of the intersection points on respective line. TF is a boolean to indicate if the lines intersect or not.