Filter löschen
Filter löschen

Calculation the coordinate of a point

20 Ansichten (letzte 30 Tage)
Maria
Maria am 28 Mär. 2014
Kommentiert: Pratik Pandya am 5 Feb. 2019
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 ? .

Akzeptierte Antwort

Mischa Kim
Mischa Kim am 28 Mär. 2014
Bearbeitet: Mischa Kim am 28 Mär. 2014
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.

Weitere Antworten (1)

Carlos
Carlos am 28 Mär. 2014
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 Kommentar
Pratik Pandya
Pratik Pandya am 5 Feb. 2019
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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by