Skip to main content

segment_intersection

Function segment_intersection 

Source
pub fn segment_intersection(
    a1: Vec2,
    a2: Vec2,
    b1: Vec2,
    b2: Vec2,
) -> Option<Vec2>
Expand description

Returns the intersection point of segments a1a2 and b1b2, if any.