geometry - Calculate minimum distance between two lines and two arc -


i have 2 problem first how calculate minimum distance between 2 lines. details attaching image here.

enter image description here

in image describe line start , end point. have start , end point both lines not getting idea how calculate minimum distance between 2 lines.

another problem how calculate minimum distance between 2 arc. attaching image here

enter image description here

for arc have start, end , center point have start , end angle.

this link has lot more things - shortest distance between point , line segment

i got above link.

enter image description here

this issue facing now. in scenario how calculate minimum distance between 2 arc?

any idea how solve 2 issue?

distance between 2 intersecting lines 0

otherwise, want calculate endpoint of 1 of line other one. if want calculate distance between point , line :

it length of line segment joins point line , perpendicular line.

for arcs think arcs part of circles, distance between them distance between center points , minus radiuses.

can find more here: calculate minimum distance between 2 given circular arcs

example example


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -