getting an intersection of 2 lines #915
Unanswered
IdoBrickner
asked this question in
Q&A
Replies: 1 comment
-
The from ezdxf.math import Vec2, intersection_line_line_2d
line1_start = Vec2(1, 1)
line1_end = Vec2(4, 4)
line2_start = Vec2(1, 3)
line2_end = Vec2(4, 2)
line1 = (line1_start, line1_end)
line2 = (line2_start, line2_end)
intersection_point = intersection_line_line_2d(line1, line2) See docs for more information: https://ezdxf.mozman.at/docs/math/core.html#ezdxf.math.intersection_line_line_2d |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to get the coordinates of an intersection of 2 lines.
At first I want to do it very simple, later on I want to get the lines information from dxf.
I tried the following code:
and getting the following error:
please advise.
Beta Was this translation helpful? Give feedback.
All reactions