Title: | What the Package Does (One Line, Title Case) |
---|---|
Description: | Point in polygon. |
Authors: | Michael D. Sumner [aut, cre] |
Maintainer: | Michael D. Sumner <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1 |
Built: | 2024-11-05 03:41:43 UTC |
Source: | https://github.com/hypertidy/plover |
point in polygon
ic_over(pts, pol0, xyeps = NULL)
ic_over(pts, pol0, xyeps = NULL)
pts |
matrix of points |
pol0 |
list of polygon matrices (or sf, sfc_M/POLYGON) |
xyeps |
offset,precision (WIP) |
integer of polygon
ic_over(matrix(runif(10), ncol = 2), list(c(0, .5, .5, 0, 0)))
ic_over(matrix(runif(10), ncol = 2), list(c(0, .5, .5, 0, 0)))
Call the clipper lib ...
inside_clipper(pts, coords, extent = NULL)
inside_clipper(pts, coords, extent = NULL)
pts |
matrix of points 2 columns x,y |
coords |
matrix of polygon ring 2 columns x,y |
extent |
optional extents (WIP) |
WIP
integer vector of point in polygon status, see Details
inside_clipper(matrix(runif(10), ncol = 2), cbind(c(0, .5, .5, 0, 0), c(0, 0, .5, 0, 0)))
inside_clipper(matrix(runif(10), ncol = 2), cbind(c(0, .5, .5, 0, 0), c(0, 0, .5, 0, 0)))
Loop clipper
inside_clipper_loop_mat(pts, lcoords, xyeps = NULL)
inside_clipper_loop_mat(pts, lcoords, xyeps = NULL)
pts |
matrix of points |
lcoords |
list of matrixes |
xyeps |
offset x, offset y, precision |
list
inside_clipper_loop_mat(matrix(runif(10), ncol = 2), list(cbind(c(0, .5, .5, 0, 0), c(0, 0, .5, 0, 0))))
inside_clipper_loop_mat(matrix(runif(10), ncol = 2), list(cbind(c(0, .5, .5, 0, 0), c(0, 0, .5, 0, 0))))
Loop cliper
inside_clipper_loop_x_y(pts, coordsx, coordsy)
inside_clipper_loop_x_y(pts, coordsx, coordsy)
pts |
matrix of points |
coordsx |
list of vectors polygon x |
coordsy |
list of vectors polygon y |
list
inside_clipper_loop_x_y(matrix(runif(10), ncol = 2), list(c(0, .5, .5, 0, 0)), list(c(0, 0, .5, 0, 0)))
inside_clipper_loop_x_y(matrix(runif(10), ncol = 2), list(c(0, .5, .5, 0, 0)), list(c(0, 0, .5, 0, 0)))
Call the O'Rourke InPoly function with cpp11.
inside_orourke(pts, coords)
inside_orourke(pts, coords)
pts |
matrix of points 2 columns x,y |
coords |
matrix of polygon ring 2 columns x,y |
For each query point 'pts', returns one of the following relative to P 'coords': 0 : is strictly interior to P 1 : is strictly exterior to P 3 : is a vertex of P 2 : lies on the relative interior of an edge of P
integer vector of point in polygon status, see Details
this was called inside_cpp11 in the insidecpp11 package
inside_orourke(matrix(runif(10), ncol = 2), cbind(c(0, .5, .5, 0, 0), c(0, 0, .5, 0, 0)))
inside_orourke(matrix(runif(10), ncol = 2), cbind(c(0, .5, .5, 0, 0), c(0, 0, .5, 0, 0)))