compas.geometry.is_intersection_line_plane

compas.geometry.is_intersection_line_plane(line, plane, tol=1e-06)[source]

Determine if a line (ray) intersects with a plane.

Parameters
  • line ([point, point] or compas.geometry.Line) – A line.

  • plane ([point, normal] or compas.geometry.Plane) – A plane.

  • tol (float, optional) – A tolerance for intersection verification. Default is 1e-6.

Returns

boolTrue if the line intersects with the plane. False otherwise.