Tests which vertices of polygon a lay inside polygon b.

intersect_polygons(a, b, strictly = FALSE)

Arguments

a, b

Matrix or data.frame with columns x and y.

strictly

Logical value. If TRUE, only barcode spots that are strictly interior to the polygon are returned. If FALSE, barcodes that are on the relative interior the polygon border or that are vertices themselves are returned, too.

Value

Logical vector of the same length as the number of rows in a.