[][src]Function flo_curves::bezier::curve_intersects_ray

pub fn curve_intersects_ray<C: BezierCurve, L: Line<Point = C::Point>>(
    curve: &C,
    line: &L
) -> SmallVec<[(f64, f64, C::Point); 4]> where
    C::Point: Coordinate2D

Find the t values where a curve intersects a ray

Return value is a vector of (curve_t, line_t, intersection_point) values. The line_t value can be outside the original line, so this will return all the points on the curve that lie on a line of infinite length.