diff NEWS @ 20168:bef9086a6725

inpolygon.m: Overhaul function and fix bug #40970. * NEWS: Announce changes in inpolygon definition. * inpolygon.m: Use 'in |= on' to include points on the boundary since this is what Matlab does. Rewrite docstring with new definition. Change error() messages to be more explicit. Add more input validation tests.
author Rik <rik@octave.org>
date Sat, 25 Apr 2015 20:50:36 -0700
parents 33e706b6b7be
children 45565ecec019 077e73619ba8
line wrap: on
line diff
--- a/NEWS	Sat Apr 25 19:43:27 2015 +0200
+++ b/NEWS	Sat Apr 25 20:50:36 2015 -0700
@@ -145,6 +145,10 @@
     column vector as output unless the input was a row vector.  This change
     was made for Matlab compatibility.
 
+ ** The inpolygon function now returns true for points that are within
+    the polygon OR on it's edge.  This change was made for Matlab
+    compatibility. 
+
  ** The archive family of functions (bzip2, gzip, zip, tar) and their
     unpacking routines (bunzip2, gunzip, unzip, untar, unpack) have
     been recoded.  Excepting unpack, the default is now to place files