Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have $3D$ point set lying on a vertical plane. This plane is not parallel to either $X$ or $Y$ axis but makes an angle (say, $\theta$) to $X$ axis. And also it has some ($+$ or $-$) intercept to the $X$ axis.

Now, I want to update my $X$ axis parallel to the azimuthal direction of my plane. And then I want to lie down the vertical plane to $XY$ plane. So, I think I could use my original $Z$ coordinates as the new $Y$ coordinates. As the plane lie on $XY$ plane, there should not be $Z$ coordinates any more. So, I want to know how to get my new $X$ coordinates from the original $XYZ$ and $\theta$.

Actually, I want to implement this modification in $c++$. But I am really poor in mathematics and struggling to figure out what should be the formula.

After doing this, I want to do some process with the new $XY$ point coordinates. And at the end, I want to bring back all my coordinates to original system. That is finally I want to go back to my original $XYZ$ axes. So I am also looking your assistant to get this case too.

Your assistant is highly appreciated.

share|cite|improve this question
Any help please.. – gnp Feb 26 '13 at 12:01
up vote 1 down vote accepted

It took me quite a while to figure out your description, but I guess I finally understood what you're trying to do.

Use $\sqrt{(X - X_i)^2 + Y^2}$ as your new $X$ coordinates, where $X_i$ is the intercept along the $X$ axis. As you'll be using the original $Z$ as one new coordinate, the Euclidean length in the other two original coordinates will correspond to the part orthogonal to that. And subtracting the intercept will bring you back to a situation where the plane directly passes through the origin.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.