resqpy.olio.intersection.line_plane_intersect¶
- resqpy.olio.intersection.line_plane_intersect(line_p, line_v, triangle)[source]¶
Find the intersection of a line with a plane defined by a triangle.
- Parameters
line_p (3 element numpy vector) – a point on the line
line_v (3 element numpy vector) – vector being the direction of the line
triangle ((3, 3) numpy array) – three points on the plane (second index is xyz)
- Returns
point (3 element numpy vector) of intersection of the line with the plane, or None if line is parallel to plane