# Calculate unknown X Y coordinate using known XY coordinate and distance between them

• Mar 14th 2013, 05:36 PM
conchubhar30
Calculate unknown X Y coordinate using known XY coordinate and distance between them
Hello,

I have a list of data points with XY coorindates within a sphere. The origin is 0,0.

I have calculated the distance between the data points and the origin. However, I need to move the X and Y coordinates by a known distance along the same line.

So I need to find an unknown X and Y coordinate with a known X and Y coordinate as well as the the known distance between them.

Any assistance is greatly appreciated!!!Attachment 27527
• Mar 14th 2013, 06:07 PM
Shakarri
Re: Calculate unknown X Y coordinate using known XY coordinate and distance between t
You can think of the problem like two triangles that have the same angles but different dimensions.
For triangles like these the ratio of their hypotenuses is equal to the ratio of their heights (y). Likewise the ratio of their hypotenuses is equal to the ratio of their bases (x)

http://puu.sh/2hSZG