Calculation the coordinate of a point

38 views (last 30 days)
Maria on 28 Mar 2014
Commented: Pratik Pandya on 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 ? .

Mischa Kim on 28 Mar 2014
Edited: Mischa Kim on 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.
Maria on 28 Mar 2014
Thanks Mischa .

Carlos on 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
Pratik Pandya on 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.