Intersection of two vector lines
조회 수: 3 (최근 30일)
이전 댓글 표시
How would I go about finding the intersection point of two vector lines in the form:
a = b*t + u
c = d*s + v
where a,b and s is a 3x1 matrix?
댓글 수: 0
채택된 답변
Matt J
2023년 4월 27일
편집: Matt J
2023년 4월 27일
where a,b and s is a 3x1 matrix?
I assume you really mean that a,b,u,c,d,v are 3x1 and t,s are scalars.
ts=[b,-d]\( v-u );
intersection=b*ts(1)+u
댓글 수: 2
Matt J
2023년 4월 27일
I'm glad, but please Accept-click the answer to indicate that (and likewise for previous answers you may not have accept-clicked).
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!