Skip to main content

continuous_line3_plane3

Function continuous_line3_plane3 

Source
pub fn continuous_line3_plane3<S>(
    line: Line3<S>,
    plane: Plane3<S>,
) -> Option<Line3Point<S>>
Expand description

Compute the continuous intersection of a 3D line with a 3D plane.

Returns None if the line and plane are parallel:

let plane = Plane3::new ([0.0, 0.0,  0.0].into(), Unit3::axis_z());
let line  = Line3::new  (
  [0.0, 0.0, 0.0].into(),
  Unit3::normalize ([1.0, 1.0, 0.0].into()));
assert_eq!(continuous_line3_plane3 (line, plane), None);