Determine if a point is inside a JamPolygon
Arguments
- x
listwith"x","y"withnumericvalues, representing one or more points.- jp
JamPolygon- apply_holes
logical(default TRUE) whether internal polygon holes are applied, which requires a point in a solid portion of the polygon. Whenapply_holes=FALSEa point must only be contained within the outer boundary of the polygon.- nullValue
default
NAto define the return value when there is no overlapping polygon for a given point. Another alternative isnullValue=NULLwhich has the benefit of returning a vector with length 0, convenient to test for presence of any overlaps. In fact, this option is used byhas_point_in_JamPolygon()for convenience.- ...
additional arguments are ignored.
Value
list with integer index values representing any
polygons in jp which contain each point in x.
When there is no overlapping polygon, nullValue is returned.
See also
Other JamPolygon:
JamPolygon-class,
[,JamPolygon-method,
add_orientation_JamPolygon(),
area_JamPolygon(),
bbox_JamPolygon(),
buffer_JamPolygon(),
check_JamPolygon(),
eulerr_to_JamPolygon(),
farthest_point_JamPolygon(),
find_venn_overlaps_JamPolygon(),
has_point_in_JamPolygon(),
intersect_JamPolygon(),
label_fill_JamPolygon(),
label_outside_JamPolygon(),
label_segment_JamPolygon(),
labelr_JamPolygon(),
minus_JamPolygon(),
nearest_point_JamPolygon(),
nudge_JamPolygon(),
plot.JamPolygon(),
polyclip_to_JamPolygon(),
polygon_circles(),
polygon_ellipses(),
sample_JamPolygon(),
split_JamPolygon(),
union_JamPolygon(),
update_JamPolygon()