Function intersect2d::intersect[][src]

pub fn intersect<T>(one: &Line<T>, other: &Line<T>) -> Option<Intersection<T>> where
    T: Float + Zero + Display + CoordNum + PartialOrd + AbsDiffEq + UlpsEq,
    T::Epsilon: Copy

Get any intersection point between line segments. Note that this function always detects endpoint-to-endpoint intersections. Most of this is from https://stackoverflow.com/a/565282