Borrar filtros
Borrar filtros

Calculation the coordinate of a point

18 visualizaciones (últimos 30 días)
Maria
Maria el 28 de Mzo. de 2014
Comentada: Pratik Pandya el 5 de Feb. de 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 ? .

Respuesta aceptada

Mischa Kim
Mischa Kim el 28 de Mzo. de 2014
Editada: Mischa Kim el 28 de Mzo. de 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.

Más respuestas (1)

Carlos
Carlos el 28 de Mzo. de 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 comentario
Pratik Pandya
Pratik Pandya el 5 de Feb. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Smoothing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by