pnpoly: Determine if point is inside a polygon.

Description Usage Arguments Value

View source: R/polygon.R

Description

This function determines whether a point is inside a polygon characterized by its vertices.

Usage

1
pnpoly(xv, yv, x, y)

Arguments

xv

X coordinates of the polygon's vertices.

yv

Y coordinates of the polygon's vertices.

x

X coordinate of the point.

y

Y coordinate of the point.

Value

TRUE if the point is inside the polygon.


tunelipt/tecutils documentation built on Nov. 5, 2019, 11 a.m.