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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -