geos_segment_intersection | R Documentation |
Segment operations
geos_segment_intersection(a, b)
geos_orientation_index(a, point)
a , b |
A |
point |
A |
geos_segment_intersection()
returns a list(x, y)
;
geos_orientation_index()
returns -1, 0 or 1, depending if
the point
lies to the right of (-1), is colinear with (0) or
lies to the left of (1) the segment (as judged from the start
of the segment looking towards the end).
geos_segment_intersection(
list(0, 0, 10, 10),
list(10, 0, 0, 10)
)
geos_orientation_index(
list(0, 0, 10, 10),
list(15, c(12, 15, 17))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.