Function intersect2d::intersect_line_point [−][src]
pub fn intersect_line_point<T>(
line: &Line<T>,
point: &Coordinate<T>
) -> Option<Intersection<T>> where
T: Float + Zero + Display + CoordNum + PartialOrd + AbsDiffEq + UlpsEq,
T::Epsilon: Copy,
Get any intersection point between line segment and point. Inspired by https://stackoverflow.com/a/17590923