Calculation the coordinate of a point

17 vues (au cours des 30 derniers jours)
Maria
Maria le 28 Mar 2014
Commenté : Pratik Pandya le 5 Fév 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 ? .

Réponse acceptée

Mischa Kim
Mischa Kim le 28 Mar 2014
Modifié(e) : Mischa Kim le 28 Mar 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.
  1 commentaire
Maria
Maria le 28 Mar 2014
Thanks Mischa .

Connectez-vous pour commenter.

Plus de réponses (1)

Carlos
Carlos le 28 Mar 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 commentaire
Pratik Pandya
Pratik Pandya le 5 Fév 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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Particle & Nuclear Physics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by