Re: [R] problem with pip2d() from ptinpoly

2014-04-19 Thread Waichler, Scott R
: Waichler, Scott R; r-help@r-project.org > Subject: Re: [R] problem with pip2d() from ptinpoly > > Apparently it matters whether your polygon is defined clockwise or > counterclockwise. > > A point outside your triangle is recognized ... > > q2 <- matrix(c(594893.

Re: [R] problem with pip2d() from ptinpoly

2014-04-18 Thread Boris Steipe
Apparently it matters whether your polygon is defined clockwise or counterclockwise. A point outside your triangle is recognized ... > q2 <- matrix(c(594893.0,115435.0), ncol=2, byrow=T) > pip2d(Vertices = verts, Queries = q2) [1] 1 ... and defining the triangle in counterclockwise sense gives