Calculation the coordinate of a point
조회 수: 8 (최근 30일)
이전 댓글 표시
If the distance and angle between two points is known and the coordinate one of two points is also known , how could I calculate the coordinate of second point ? .
댓글 수: 0
채택된 답변
Mischa Kim
2014년 3월 28일
편집: Mischa Kim
2014년 3월 28일
Mick,
x2 = x1 + d*cos(al);
y2 = y1 + d*sin(al);
where d is the distance and al is the angle in rad measured between the x-axis and the line defined by the two points.
추가 답변 (1개)
Carlos
2014년 3월 28일
I will give you some clues
You have points (x1,y1)(known) and point (x2,y2) (unknown),so you have two unknown variables, so you need two equations.
First equation
You know the distance d, and you know the points x1,y1
d=sqrt((x1-x2)^2+(y1-y2)^2)
Second equation
You know the angle, so you can ifnd out the slope m=tan(alpha) (alpha is the angle) and
m=(y2-y1)/(x2-x1)
Now just solve your system of two equations with two unknowns
댓글 수: 1
Pratik Pandya
2019년 2월 5일
hEY CARLOS,
I was just wondering that what would happen if we shift the scenario to three dimensions.I have (x1,y1,z1) and (x2,y2,z2) both known to me with distance (and seperately dx,dy,dz) and angular displacement (thx,thy,thz).
I want to generate one coordinate set( say on (x1,y1,z1) side) based on which i will generate the another on the (x2,y2,z2)side.
참고 항목
카테고리
Help Center 및 File Exchange에서 Smoothing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!