Thread: Dim as Point
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Brad Brad is offline
external usenet poster
 
Posts: 57
Default Dim as Point

For a bit of code where the author defines a function like this:

Function pnpoly(npol As Integer, poly() as Point, x as Integer, Y as
Integer) as Boolean,

I am pretty sure the poly() input defined "as Point" is looking for an xy
point value for an edge of a polygon, but I am unsure how it is derived.

Any ideas? My thanks in advance for any comments or suggestions... this is a
function to identify whether an x-y data point falls inside of or outside of
a convex polygon.

Cheers! Brad