|
|
| File Information |
| Description |
This function computes the (x,y) locations where two curves intersect. The curves can be broken with NaNs or have vertical segments. It is also very fast (at least on data that represents what I think is a typical application). |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
Curve Intersect 2
This submission has inspired the following:
Fast and Robust Self-Intersections, Kirchhoff Vortex Contour Dynamics Simulation
|
| MATLAB release |
MATLAB 7.0.4 (R14SP2)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (32) |
| 01 Aug 2006 |
A. Silverstone
|
|
|
| 01 Aug 2006 |
M MA
|
|
|
| 02 Aug 2006 |
Douglas Schwarz
|
|
|
| 09 Aug 2006 |
John D'Errico
|
|
|
| 11 Aug 2006 |
Jos vdG
|
|
|
| 12 Aug 2006 |
Peter Navé
|
|
|
| 24 Aug 2006 |
Brian K
|
|
|
| 28 Aug 2006 |
Rickey Chen
|
|
|
| 14 Feb 2007 |
Chris Barichievy
|
|
|
| 15 Feb 2007 |
Andy Dixon
|
|
|
| 02 May 2007 |
Ken Garrard
|
|
|
| 15 Jul 2007 |
Eduardo GR
|
|
|
| 24 Aug 2007 |
Gabriel Iniesta
|
|
|
| 24 Aug 2007 |
Douglas Schwarz
|
|
|
| 03 Sep 2007 |
Scott Miller
|
|
|
| 20 Sep 2007 |
Heikki Huttunen
|
|
|
| 17 Dec 2007 |
Levi Kilcher
|
|
|
| 18 Dec 2007 |
Douglas Schwarz
|
|
|
| 03 Jan 2008 |
Levi Kilcher
|
|
|
| 21 Feb 2008 |
W. H. Brave
|
|
|
| 04 Dec 2008 |
Thomas
|
|
|
| 23 Feb 2009 |
Jeremy Bruch
|
|
|
| 07 Apr 2009 |
Yuri Kotliarov
|
|
|
| 08 Apr 2009 |
Douglas Schwarz
|
|
|
| 08 Apr 2009 |
Yuri Kotliarov
|
|
|
| 08 Apr 2009 |
Douglas Schwarz
|
|
|
| 28 Jul 2009 |
Douglas Schwarz
|
|
|
| 28 Jul 2009 |
Yuri Kotliarov
|
|
|
| 28 Jul 2009 |
Douglas Schwarz
|
|
|
| 28 Aug 2009 |
Theresa
|
|
|
| 29 Sep 2009 |
Nik F
|
|
|
| 17 Nov 2009 |
Olga Avila
|
|
|
| Updates |
| 02 Aug 2006 |
Based on comment from M MA I added code to handle difficult situations such as colinear line segments. Also, I updated the documentation. |
| 04 Aug 2006 |
Added screenshot. |
| 07 Aug 2006 |
Fixed a minor bug related to handling NaNs in the curves. |
| 09 Aug 2006 |
Forgot to reset warning state when no error occurred -- now fixed. |
| 01 Apr 2007 |
Fixed bug when more than one anomaly present in data. |
| 01 May 2007 |
Added robustness option at the expense of a little speed -- on by default, but can be turned off. |
| 25 Jun 2007 |
Fixed bug where parallel segments were incorrectly identified as overlapping. Increased speed of non-robust algorithm. Other internal changes. |
| 27 Aug 2007 |
Reverted to using \ instead of linsolve as it seems to be more accurate. |
| 18 Dec 2007 |
Added additional outputs which indicate in which segment pairs the intersections lie. |
| 26 Feb 2008 |
Added ability to find self-intersections of one curve. |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com