I'm trying to figure out how to translate points from one coordinate system to the another. I need to go from the standard 3d coordinate system to a coordinate system with the x axis $u = <x, y, z>$. I've managed to get the transformations working for 3 arbitrary axes, but what I can't seem to do properly is get the y and z axes from $u$.
I think I have to swap around the $x$, $y$, and $z$ of $u$ and negate them, but I can't seem to figure out the right way to do it.
Essentially, given a vector defining the X axis $X = <x, y, z>$, I want to find the vectors $Y$ and $Z$ defining the Y and Z axes.
(I also think that the solution here could produce 2 answers, since Y and Z could be arbitrarily swapped, but I'm not sure. For my purposes, I don't think it matters).
Thanks for any help!
You need to have the new specific system.
With only x you can find a infinite set of pair (y, z). It is a plane, perpendicular with x.
Without specific y and z you can't define specific coordinates of a point in the new system. In other words, you can't do transformation.
Solution: You need at least a pair of(x, y) or (x, z) or (y, z) to find the third using cross product.