intersect

Function intersect 

Source
pub fn intersect<ZZ: ZZNum>((a, b): &(ZZ, ZZ), (c, d): &(ZZ, ZZ)) -> bool
Expand description

Return whether line segments AB and CD intersect. Note that touching in only endpoints does not count as intersection. Based on: https://stackoverflow.com/a/9997374/432908