- #1
- 29
- 2
The Galilean transforms for rotations, boosts and translations in 2D are the follows:
Rotations:
x' = xcosθ + ysinθ
y' = -xsinθ + ycosθ
Boosts:
x' = x - vxt
y' = y - vyt
Translations:
x' = x - dx
y' = y - dx
I wanted to combine these into a single pair of equations, so my first thought was to combine boosts and translations and plug into rotations. Doing that, you get:
x' = (x - dx - vxt)cosθ + (y - dy - vyt)sinθ
y' = -(x - dx - vxt)sinθ + (y - dy - vyt)cosθ
However, I realized that if you combined the equations differently, say by first plugging rotations into translations, and then plugging that into boosts, you get:
x' = xcosθ + ysinθ - vxt - dx
y' = -xsinθ + ycosθ- vyt - dy
Which is the correct order, if any, and why? It's also possible that I'm doing the composite wrong somehow, haven't really done that sort of thing since pre-calc.. I'm a junior now.
Rotations:
x' = xcosθ + ysinθ
y' = -xsinθ + ycosθ
Boosts:
x' = x - vxt
y' = y - vyt
Translations:
x' = x - dx
y' = y - dx
I wanted to combine these into a single pair of equations, so my first thought was to combine boosts and translations and plug into rotations. Doing that, you get:
x' = (x - dx - vxt)cosθ + (y - dy - vyt)sinθ
y' = -(x - dx - vxt)sinθ + (y - dy - vyt)cosθ
However, I realized that if you combined the equations differently, say by first plugging rotations into translations, and then plugging that into boosts, you get:
x' = xcosθ + ysinθ - vxt - dx
y' = -xsinθ + ycosθ- vyt - dy
Which is the correct order, if any, and why? It's also possible that I'm doing the composite wrong somehow, haven't really done that sort of thing since pre-calc.. I'm a junior now.