Find distance between two lines using c#

Discuss and ask questions about CAD .NET library.

Moderators: support, SDS, admin

Post Reply
SaranyaPothiraj
Posts: 2
Joined: 10 Jan 2018, 13:01

Find distance between two lines using c#

Post by SaranyaPothiraj » 10 Jan 2018, 16:05

Need to calculate length of lines that are selected in the attached diagram.But the two rectangles are polylines.

that's to find distance between the two lines for four sides using the vertices.

For Example:
Vertices of line on left outer line: A = (1,1), B = (1,8)
Vertices of line on left inner line: C= (2,4), D = (4,4)

Distance between these two line segment?Is this possible?
Can we calculate this for four side in given diagram?
Attachments
Capture.PNG
Capture.PNG (15.85 KiB) Viewed 20129 times

Post Reply