Mercurial > hg > octave-nkf
diff scripts/geometry/tsearchn.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | d0b799dafede |
line wrap: on
line diff
--- a/scripts/geometry/tsearchn.m +++ b/scripts/geometry/tsearchn.m @@ -44,7 +44,7 @@ b = cart2bary (x (t (i, :), :), xi(ni,:)); ## Our points xi are in the current triangle if - ## (all(b >= 0) && all (b <= 1)). However as we impose that + ## (all(b >= 0) && all (b <= 1)). However as we impose that ## sum(b,2) == 1 we only need to test all(b>=0). Note need to add ## a small margin for rounding errors intri = all (b >= -1e-12, 2);