Function geos::segment_intersection [−][src]
pub fn segment_intersection(
ax0: f64,
ay0: f64,
ax1: f64,
ay1: f64,
bx0: f64,
by0: f64,
bx1: f64,
by1: f64
) -> GResult<Option<(f64, f64)>>
Expand description
Returns None
if the segments don’t intersect, otherwise returns Some(x_pos, y_pos)
.
Available using the v3_7_0
feature.