필터 지우기
필터 지우기

How to draw a 3D circle that is tangent to two lines

조회 수: 1 (최근 30일)
MingCheng Zhang
MingCheng Zhang 2020년 10월 23일
댓글: MingCheng Zhang 2020년 11월 24일
Hi,
May I ask that, I have two 3D lines on the same plane, and I have two known point on the individual line. the angle between two lines is unknown. And now I want to draw a circle that is tangent to both of the lines (on the same plane), and intersect the two known points. Is there a way to do this in matlab. Really appreciated for the help.
Thank you.
  댓글 수: 2
Sindar
Sindar 2020년 10월 23일
First, you need to know how to do it "by hand," then you can code the math up in Matlab. This (non-Matlab) question seems relevant
MingCheng Zhang
MingCheng Zhang 2020년 10월 26일
yap, totally agreely, I should have done that. Thank you for the help~

댓글을 달려면 로그인하십시오.

채택된 답변

John D'Errico
John D'Errico 2020년 11월 23일
편집: John D'Errico 2020년 11월 23일
First, if the lines are in the same plane, then you can pretend this is a problem in 2-dimensions. You can always rotate everything into the plane containing the lines. That part is easy enough. So pretend you have done so.
Now consider two lines that are NOT parallel, both of which lie in the plane. They must intersect at some point.
What is the circle that is tangent to both lines? Hint: There is no unique circle. There are INFINTELY many circles tangent to two intersecting lines. All such circles have their center along the line passing through the intersection of the lines.
So you cannot draw THE circle.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by