Skip to content

isinpoly.m

Basic Information

  USAGE:   ft = isinpoly(rt,zt,rp,zp)
           ft = isinpoly(rt,zt)
           Second call uses latest supplied polygon and executes faster

  PURPOSE: Test if point(s) rt, zt are inside polygon rp, zp

  INPUTS: rt, zt, coordinates of test points
          rp, zp, coordinates of polygon corners

  OUTPUTS: ft, flag(s): 0 = outside, 1 = inside

Dependencies