: 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.
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
2 matches
Mail list logo