[Int Px Py Len Para] = LineIntersect(P1x,P1y,P2x,P2y);
Determines if and where 2D polylines intersect.
|
Parameters |
Description |
|
P1x [vector] |
x axis locations of first polyline |
|
P1y [vector] |
y axis locations of first polyline |
|
P2x [vector] |
x axis locations of second polyline |
|
P2y [vector] |
y axis locations of second polyline |
|
Return Values |
Description |
|
Int [P1xP2 logical array] |
Intersections tag per polyline segment |
|
Px [P1xP2 array] |
X axis intersect points |
|
Py [P1xP2 array] |
Y axis intersect points |
|
Len [P1xP2 array] |
Length to intersect |
|
Para [P1xP2 array] |
Parallel tag per polyline segment |
D. Kirk, Graphic Gems III, pg.188-192. Ap Professional, 1992.
|
Copyright (c) MZA Associates 2009. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|