geos.GEOSSegmentIntersection ⇒ number ⏏
Computes the coordinate where two line segments intersect, if any
Kind: global property of geos
Returns: number - 0 on error, 1 on success, -1 if segments do not intersect
| Param | Type | Description |
|---|---|---|
| ax0 | number | x-coordinate of 1st point in 1st segment |
| ay0 | number | y-coordinate of 1st point in 1st segment |
| ax1 | number | x-coordinate of 2nd point in 1st segment |
| ay1 | number | y-coordinate of 2nd point in 1st segment |
| bx0 | number | x-coordinate of 1st point in 2nd segment |
| by0 | number | y-coordinate of 1st point in 2nd segment |
| bx1 | number | x-coordinate of 2nd point in 2nd segment |
| by1 | number | y-coordinate of 2nd point in 2nd segment |
| cx | NumberPointer | x-coordinate of intersection point |
| cy | NumberPointer | y-coordinate of intersection point |
geos.GEOSSegmentIntersection_r ⇒ number ⏏
Computes the coordinate where two line segments intersect, if any
Kind: global property of geos
Returns: number - 0 on error, 1 on success, -1 if segments do not intersect
| Param | Type | Description |
|---|---|---|
| extHandle | GEOSContextHandle_t | - |
| ax0 | number | x-coordinate of 1st point in 1st segment |
| ay0 | number | y-coordinate of 1st point in 1st segment |
| ax1 | number | x-coordinate of 2nd point in 1st segment |
| ay1 | number | y-coordinate of 2nd point in 1st segment |
| bx0 | number | x-coordinate of 1st point in 2nd segment |
| by0 | number | y-coordinate of 1st point in 2nd segment |
| bx1 | number | x-coordinate of 2nd point in 2nd segment |
| by1 | number | y-coordinate of 2nd point in 2nd segment |
| cx | NumberPointer | x-coordinate of intersection point |
| cy | NumberPointer | y-coordinate of intersection point |