Problem with Two Axis Systems

hutchay

New member
Joined
Oct 28, 2014
Messages
3
I have a problem involving 2 axis systems for the same area.

I have the location of 2 points in both axes and the location of a third point in only 1 axis.

With the objective being to calculate the coordinates for the third point in the other axis.

The diagram (jpg attachment) I put together explains it much more clearly.

Been trying to get starting figuring I need to work out the angle between the axes and the difference in origin location, but it's been so long since I did any of this I'm getting stumped:
 

Attachments

  • Axis Translation Question.jpg
    Axis Translation Question.jpg
    60.4 KB · Views: 5
  • equations.jpg
    equations.jpg
    29.5 KB · Views: 0
Last edited:
I have a problem involving 2 axis systems for the same area.

I have the location of 2 points in both axes and the location of a third point in only 1 axis.

With the objective being to calculate the coordinates for the third point in the other axis.

The diagram (jpg attachment) I put together explains it much more clearly.

Been trying to get starting figuring I need to work out the angle between the axes and the difference in origin location, but it's been so long since I did any of this I'm getting stumped:

The standard 'translate and rotate' [or rotate and translate] can be written in matrix form as
[(u-u0) (v-v0)] = [(x-x0) (y-y0)] A
where A is a two by two matrix with row vectors [cos(\(\displaystyle \theta\)) -sin(\(\displaystyle \theta\))] and [sin(\(\displaystyle \theta\)) cos(\(\displaystyle \theta\))]

From your diagram, we can use
[x0 y0] = [AGX AGY]
and
[u0 v0] = [AFX AFY]


For convenience, let
a = u - u0,
b = v - v0,
c = x - x00,
and
d = y - y0.
From your diagram we also have that if
[x y] = [BGX BGY]
then
[u v] = [BFX BFY]
or
a = c cos(\(\displaystyle \theta\)) + d sin(\(\displaystyle \theta\))
b = d cos(\(\displaystyle \theta\)) - c sin(\(\displaystyle \theta\))
I believe this is essentially what you have already done. To finish, multiply the first of these two last equations by c and the second by d, then add to get
a c + b d = (c2 + d2) cos(\(\displaystyle \theta\))
or
\(\displaystyle cos(\theta) = \frac{a c + b d}{c^2 + d^2}\)
Simularly
\(\displaystyle sin(\theta) = \frac{a d - b c}{c^2 + d^2}\)

Edit to add: Oh, and now just plug in
[x, y] = [CGX CGY]
and compute [u v] to obtain [CFX CFY]
 
Last edited:
To finish, multiply the first of these two last equations by c and the second by d, then add to get
a c + b d = (c2 + d2) cos(\(\displaystyle \theta\))

Thank you very much, I'd spent ages trying to find a way to manipulate those formula to give me theta.
 
Top