Code covered by the BSD License  

Highlights from
intxy

3.5

3.5 | 2 ratings Rate this file 3 Downloads (last 30 days) File Size: 2.38 KB File ID: #15239
image thumbnail

intxy

by Tim Myers

 

08 Jun 2007 (Updated 11 Jun 2007)

Finds the first point along line a where an intersection

| Watch this File

File Information
Description

Returns the location of the first intersection of a and b. If the intersection occurs along a segment (as opposed to at a vertex), then the decimal value of ia (or ib) defines the distance between the intersection and preceeding vertex as a portion of the overall length of the segment containing the intersection. For example, an intersection occurring halfway between the 2nd and 3rd vertices of line "a" would return ia=2.5. Likewise, an intersection 1/4 the way between vertices 1 and 2 would return ia=1.25.

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
12 Jun 2007 whit schofield

Nice but how could it be modified to return all the points where a and b intersect?

14 Jun 2007 Antoni J. CanĂ³s

What do you mean with "the first point"?.

Please, have a look on Curve Intersect 2 (File ID. 8908), Fast and Robust Curve Intersections (ID 11837).

What's new in this contribution?

05 Feb 2010 Wes

I can't figure out why I am getting NAN and complex numbers returned from intxy. Any suggestions?

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
intersection polygon line Tim Myers 22 Oct 2008 09:15:00

Contact us at files@mathworks.com