poly.int2: Polygon clipping

Description Usage Arguments Value

View source: R/functions_polygon.r

Description

A function for limiting the points to being within a certain polygon? Returns a matrix of the (x, y) coordinates of points within the polygon.

Usage

1
poly.int2(xpoly, xtest)

Arguments

xpoly

A matrix of the (x, y) coordinates that are the vertices of the clipping polygon. Assumes first point = last point.

xtest

A matrix of the (x, y) coordinates of the candidate points

Value

A matrix of the (x, y) coordinates of points within the polygon.


myoung3/regionalkrig documentation built on May 23, 2019, noon