필터 지우기
필터 지우기

perpendicularity vectors, unit vector

조회 수: 2 (최근 30일)
Dominik Cech
Dominik Cech 2022년 1월 4일
댓글: Dominik Cech 2022년 1월 4일
Hello
So i have 3 curves (red, green and blue) every curve is made od 117 (x,y,z) cordinates. Then i have unit vector for each point on blue curve (cosalpha, cosbeta, cosgama). I need to get the distance betwen the curves using the unit vector. So i made a lot of line representing unit vector (length of vector is unknown). And then i tried to perpendicularity vectors from red/green curve to unit vectors and then using Pythagorean theorem to get the distance. I have no clue how to do it. Im glad for any advice.
  댓글 수: 2
Torsten
Torsten 2022년 1월 4일
Brute-force method:
Check which of the 117x117 combinations of points yields the smallest value for distance.
Dominik Cech
Dominik Cech 2022년 1월 4일
Yeah, I already did this.
But what I wanted is this. The blue cylinder has axis same as the unit vector and i would like to know in which point it interferace with the green/red curve and from that point i want to know distance betwen them. Like in the first picture I conected first point with first point etc. But becouse of the unit vectros there might be that i need to conect 10th point on green/red with 26th point on blue curve.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by