pnpolybnd: Is the point in the boundary of a polygon?

Description Usage Arguments Value Examples

View source: R/polygon.R

Description

Determines if a point is on the boundary of a polygon.

Usage

1
  pnpolybnd(vx, vy, x, y, eps0 = 1e-08)

Arguments

vx

x coordinates of the vertices of the polygon.

vy

y coordinates of the vertices of the polygon.

x

x coordinate of the point to be tested.

y

y coordinate of the point to be tested.

eps

Admissible error.

Value

TRUE if the point is on the segments.

Examples

1
2
3
4
vx <- c(0, 2, 2, 0)
vy <- c(0, 0, 2, 2)
print(pnpolybnd(vx, vy, 1, 1))
print(pnpolybnd(vx, vy, 2, 1))

tunelipt/model3d documentation built on Nov. 5, 2019, 10:59 a.m.