How to create rotation matrix in 3D space?
In a 3d space $(x,y,z)$ where $y$ is the height, I have a plane which I constructed from 2 angles (creating a normal vector).
For example:
$$alpha = -pi, beta = frac{-pi}{2}$$
To calculate the normal vector, I use:
$$
left(begin{matrix}
cos(alpha)cos(beta) \
sin(beta) \
sin(alpha)cos(beta) \
end{matrix}right)
$$
to get
$$
left(begin{matrix}
-0.6 \
0.8 \
0 \
end{matrix}right)
$$
I get the plane
$$e: 0 = -0.6x + 0.8y + 0z$$
A second plane is given
$$f: 0 = z $$
With what I have, can a calculate a rotation matrix of $e$ to $f$? If not, what is wrong with my approach?
My goal is to find the coordinates of any point $P$ of $e$ on $f$.
I of course found the Wikipedia page of Rotation matrix and other answers here, but I'm unable to construct the matrix. I'm missing some intermediate steps of understanding.
matrices vector-spaces 3d rotations
add a comment |
In a 3d space $(x,y,z)$ where $y$ is the height, I have a plane which I constructed from 2 angles (creating a normal vector).
For example:
$$alpha = -pi, beta = frac{-pi}{2}$$
To calculate the normal vector, I use:
$$
left(begin{matrix}
cos(alpha)cos(beta) \
sin(beta) \
sin(alpha)cos(beta) \
end{matrix}right)
$$
to get
$$
left(begin{matrix}
-0.6 \
0.8 \
0 \
end{matrix}right)
$$
I get the plane
$$e: 0 = -0.6x + 0.8y + 0z$$
A second plane is given
$$f: 0 = z $$
With what I have, can a calculate a rotation matrix of $e$ to $f$? If not, what is wrong with my approach?
My goal is to find the coordinates of any point $P$ of $e$ on $f$.
I of course found the Wikipedia page of Rotation matrix and other answers here, but I'm unable to construct the matrix. I'm missing some intermediate steps of understanding.
matrices vector-spaces 3d rotations
add a comment |
In a 3d space $(x,y,z)$ where $y$ is the height, I have a plane which I constructed from 2 angles (creating a normal vector).
For example:
$$alpha = -pi, beta = frac{-pi}{2}$$
To calculate the normal vector, I use:
$$
left(begin{matrix}
cos(alpha)cos(beta) \
sin(beta) \
sin(alpha)cos(beta) \
end{matrix}right)
$$
to get
$$
left(begin{matrix}
-0.6 \
0.8 \
0 \
end{matrix}right)
$$
I get the plane
$$e: 0 = -0.6x + 0.8y + 0z$$
A second plane is given
$$f: 0 = z $$
With what I have, can a calculate a rotation matrix of $e$ to $f$? If not, what is wrong with my approach?
My goal is to find the coordinates of any point $P$ of $e$ on $f$.
I of course found the Wikipedia page of Rotation matrix and other answers here, but I'm unable to construct the matrix. I'm missing some intermediate steps of understanding.
matrices vector-spaces 3d rotations
In a 3d space $(x,y,z)$ where $y$ is the height, I have a plane which I constructed from 2 angles (creating a normal vector).
For example:
$$alpha = -pi, beta = frac{-pi}{2}$$
To calculate the normal vector, I use:
$$
left(begin{matrix}
cos(alpha)cos(beta) \
sin(beta) \
sin(alpha)cos(beta) \
end{matrix}right)
$$
to get
$$
left(begin{matrix}
-0.6 \
0.8 \
0 \
end{matrix}right)
$$
I get the plane
$$e: 0 = -0.6x + 0.8y + 0z$$
A second plane is given
$$f: 0 = z $$
With what I have, can a calculate a rotation matrix of $e$ to $f$? If not, what is wrong with my approach?
My goal is to find the coordinates of any point $P$ of $e$ on $f$.
I of course found the Wikipedia page of Rotation matrix and other answers here, but I'm unable to construct the matrix. I'm missing some intermediate steps of understanding.
matrices vector-spaces 3d rotations
matrices vector-spaces 3d rotations
edited Nov 25 at 14:27
Andrei
10.9k21025
10.9k21025
asked Nov 25 at 14:00
Patrick B.
1086
1086
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$$
newcommand {vv} {mathbf v}
newcommand {nv} {mathbf n}
newcommand {uv} {mathbf u}
newcommand {wv} {mathbf w}
$$
The main problem is that there is not just one rotation of $Bbb R^3$ that takes the first plane to the second. Suppose you had such a rotation, $R$, and followed it by another rotation $T$ that rotates in the second plane (spinning around its normal vector by, say, 30 degrees). Composing those two rotations to get $S = T circ $ would give you a different rotation from the first plane to the second.
But typically in a question like this, what you want is a rotation from the first plane (I"m going to call that $P_1$, with normal vector $nv_1$) to the second ($P_2$, normal vector $nv_2$) with the additional property that the rotation doesn't move the line of intersection between the two planes.
That's not so hard to construct, surprisingly.
Let $vv = nv_1 times nv_2 / |nv_1 times nv_2 |$; that's one of the two unit vectors in the intersection $P_1 times P_2$.
Let $wv = vv times nv_2$; that's a unit vector lying in the second plane, perpendicular to $vv$. So $vv, nv_2, wv$ is an orthonormal basis for 3-space.
Let $uv = vv times nv_1$; that's a unit vector in the first plane, perp. to $vv$. So $nv, nv_1, uv$ is an orthonormal basis for $3$-space.
We want to transform the second basis to the first. Let's assume everything is written as column vectors, and let $K = pmatrix{vv& nv_1 & uv}$ be the matrix with $vv, nv_1, $ and $uv$ as its columns, and let $L = pmatrix{vv& nv_2 & wv}$ be similarly constructed.
Let $R = L K^t$. Then $R$ is a rotation taking the first plane to the second.
Let's work through those general steps for your particular case, where $nv_1 = pmatrix{-3/5 \ 4/5 \ 0}$ and $nv2 = pmatrix{0 \ 0 \ 1}$ are the normal vectors for the two planes. As it happens, because your two normal vectors are already perpendicular, something very simple happens along the way, but you may find yourself wanting to solve the more general problem later, which is why I gave the more general answer above.
Compute $nv_1 times nv_2 = pmatrix{4/5 \ 3/5 \ 0}$. The length of this vector happens to be $1$, so dividing by that length gives $vv = pmatrix{4/5 \ 3/5 \ 0}$.
Compute $wv = vv times nv_2 = pmatrix{3/5\-4/5 \ 0}$.
Compute $uv = vv times nv_1 = pmatrix{0\0\1}$.
We let
$$
K = pmatrix{
4/5 & -3/5 & 0 \
3/5 & 4/5 & 0\
0 & 0 & 1},
L = pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
$$- We compute
$$
M = LK^t =
pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
pmatrix{
4/5 & 3/5 & 0 \
-3/5 & 4/5 & 0\
0 & 0 & 1} =
pmatrix{
16/25 & 12/25 & 3/5 \
12/25 & 9/25 & -4/5\
-3/5 & 4/5 & 0}
$$
... and that should be your matrix.
Thanks for your answer. I actually understood how to construct one now. But I might have looked for the wrong solution regarding my initial problem (which I was too shy to ask here). Maybe for educational reasons I'll ask another questions where projection will be the right answer as my research didn't give me that on.
– Patrick B.
Nov 25 at 17:05
add a comment |
My goal is to find the coordinates of any point $P$ of $e$ on $f$.
Looks like what you need is actually a projection of any point ${bf . x}in e$ onto $f$. Call $hat{n}_f$ a normal vector of the plane $f$, in your case
$$
hat{n}_f = pmatrix{0 \ 0 \ 1}
$$
Now, calculate
$$
{bf x}_f = {bf x} - ({bf x}cdothat{n}_f)hat{n}_f
$$
Hmm, it seems to work actually like this. Did I go in the wrong direction in the first place? I'll try this with my real world problem to whether I actually understood my problem in the first place. Thanks.
– Patrick B.
Nov 25 at 17:02
No, I definitely don't want a projection. I need a rotation. The distance of the point from (0,0,0) needs to be the same on both planes.
– Patrick B.
Dec 2 at 9:10
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3012870%2fhow-to-create-rotation-matrix-in-3d-space%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$$
newcommand {vv} {mathbf v}
newcommand {nv} {mathbf n}
newcommand {uv} {mathbf u}
newcommand {wv} {mathbf w}
$$
The main problem is that there is not just one rotation of $Bbb R^3$ that takes the first plane to the second. Suppose you had such a rotation, $R$, and followed it by another rotation $T$ that rotates in the second plane (spinning around its normal vector by, say, 30 degrees). Composing those two rotations to get $S = T circ $ would give you a different rotation from the first plane to the second.
But typically in a question like this, what you want is a rotation from the first plane (I"m going to call that $P_1$, with normal vector $nv_1$) to the second ($P_2$, normal vector $nv_2$) with the additional property that the rotation doesn't move the line of intersection between the two planes.
That's not so hard to construct, surprisingly.
Let $vv = nv_1 times nv_2 / |nv_1 times nv_2 |$; that's one of the two unit vectors in the intersection $P_1 times P_2$.
Let $wv = vv times nv_2$; that's a unit vector lying in the second plane, perpendicular to $vv$. So $vv, nv_2, wv$ is an orthonormal basis for 3-space.
Let $uv = vv times nv_1$; that's a unit vector in the first plane, perp. to $vv$. So $nv, nv_1, uv$ is an orthonormal basis for $3$-space.
We want to transform the second basis to the first. Let's assume everything is written as column vectors, and let $K = pmatrix{vv& nv_1 & uv}$ be the matrix with $vv, nv_1, $ and $uv$ as its columns, and let $L = pmatrix{vv& nv_2 & wv}$ be similarly constructed.
Let $R = L K^t$. Then $R$ is a rotation taking the first plane to the second.
Let's work through those general steps for your particular case, where $nv_1 = pmatrix{-3/5 \ 4/5 \ 0}$ and $nv2 = pmatrix{0 \ 0 \ 1}$ are the normal vectors for the two planes. As it happens, because your two normal vectors are already perpendicular, something very simple happens along the way, but you may find yourself wanting to solve the more general problem later, which is why I gave the more general answer above.
Compute $nv_1 times nv_2 = pmatrix{4/5 \ 3/5 \ 0}$. The length of this vector happens to be $1$, so dividing by that length gives $vv = pmatrix{4/5 \ 3/5 \ 0}$.
Compute $wv = vv times nv_2 = pmatrix{3/5\-4/5 \ 0}$.
Compute $uv = vv times nv_1 = pmatrix{0\0\1}$.
We let
$$
K = pmatrix{
4/5 & -3/5 & 0 \
3/5 & 4/5 & 0\
0 & 0 & 1},
L = pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
$$- We compute
$$
M = LK^t =
pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
pmatrix{
4/5 & 3/5 & 0 \
-3/5 & 4/5 & 0\
0 & 0 & 1} =
pmatrix{
16/25 & 12/25 & 3/5 \
12/25 & 9/25 & -4/5\
-3/5 & 4/5 & 0}
$$
... and that should be your matrix.
Thanks for your answer. I actually understood how to construct one now. But I might have looked for the wrong solution regarding my initial problem (which I was too shy to ask here). Maybe for educational reasons I'll ask another questions where projection will be the right answer as my research didn't give me that on.
– Patrick B.
Nov 25 at 17:05
add a comment |
$$
newcommand {vv} {mathbf v}
newcommand {nv} {mathbf n}
newcommand {uv} {mathbf u}
newcommand {wv} {mathbf w}
$$
The main problem is that there is not just one rotation of $Bbb R^3$ that takes the first plane to the second. Suppose you had such a rotation, $R$, and followed it by another rotation $T$ that rotates in the second plane (spinning around its normal vector by, say, 30 degrees). Composing those two rotations to get $S = T circ $ would give you a different rotation from the first plane to the second.
But typically in a question like this, what you want is a rotation from the first plane (I"m going to call that $P_1$, with normal vector $nv_1$) to the second ($P_2$, normal vector $nv_2$) with the additional property that the rotation doesn't move the line of intersection between the two planes.
That's not so hard to construct, surprisingly.
Let $vv = nv_1 times nv_2 / |nv_1 times nv_2 |$; that's one of the two unit vectors in the intersection $P_1 times P_2$.
Let $wv = vv times nv_2$; that's a unit vector lying in the second plane, perpendicular to $vv$. So $vv, nv_2, wv$ is an orthonormal basis for 3-space.
Let $uv = vv times nv_1$; that's a unit vector in the first plane, perp. to $vv$. So $nv, nv_1, uv$ is an orthonormal basis for $3$-space.
We want to transform the second basis to the first. Let's assume everything is written as column vectors, and let $K = pmatrix{vv& nv_1 & uv}$ be the matrix with $vv, nv_1, $ and $uv$ as its columns, and let $L = pmatrix{vv& nv_2 & wv}$ be similarly constructed.
Let $R = L K^t$. Then $R$ is a rotation taking the first plane to the second.
Let's work through those general steps for your particular case, where $nv_1 = pmatrix{-3/5 \ 4/5 \ 0}$ and $nv2 = pmatrix{0 \ 0 \ 1}$ are the normal vectors for the two planes. As it happens, because your two normal vectors are already perpendicular, something very simple happens along the way, but you may find yourself wanting to solve the more general problem later, which is why I gave the more general answer above.
Compute $nv_1 times nv_2 = pmatrix{4/5 \ 3/5 \ 0}$. The length of this vector happens to be $1$, so dividing by that length gives $vv = pmatrix{4/5 \ 3/5 \ 0}$.
Compute $wv = vv times nv_2 = pmatrix{3/5\-4/5 \ 0}$.
Compute $uv = vv times nv_1 = pmatrix{0\0\1}$.
We let
$$
K = pmatrix{
4/5 & -3/5 & 0 \
3/5 & 4/5 & 0\
0 & 0 & 1},
L = pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
$$- We compute
$$
M = LK^t =
pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
pmatrix{
4/5 & 3/5 & 0 \
-3/5 & 4/5 & 0\
0 & 0 & 1} =
pmatrix{
16/25 & 12/25 & 3/5 \
12/25 & 9/25 & -4/5\
-3/5 & 4/5 & 0}
$$
... and that should be your matrix.
Thanks for your answer. I actually understood how to construct one now. But I might have looked for the wrong solution regarding my initial problem (which I was too shy to ask here). Maybe for educational reasons I'll ask another questions where projection will be the right answer as my research didn't give me that on.
– Patrick B.
Nov 25 at 17:05
add a comment |
$$
newcommand {vv} {mathbf v}
newcommand {nv} {mathbf n}
newcommand {uv} {mathbf u}
newcommand {wv} {mathbf w}
$$
The main problem is that there is not just one rotation of $Bbb R^3$ that takes the first plane to the second. Suppose you had such a rotation, $R$, and followed it by another rotation $T$ that rotates in the second plane (spinning around its normal vector by, say, 30 degrees). Composing those two rotations to get $S = T circ $ would give you a different rotation from the first plane to the second.
But typically in a question like this, what you want is a rotation from the first plane (I"m going to call that $P_1$, with normal vector $nv_1$) to the second ($P_2$, normal vector $nv_2$) with the additional property that the rotation doesn't move the line of intersection between the two planes.
That's not so hard to construct, surprisingly.
Let $vv = nv_1 times nv_2 / |nv_1 times nv_2 |$; that's one of the two unit vectors in the intersection $P_1 times P_2$.
Let $wv = vv times nv_2$; that's a unit vector lying in the second plane, perpendicular to $vv$. So $vv, nv_2, wv$ is an orthonormal basis for 3-space.
Let $uv = vv times nv_1$; that's a unit vector in the first plane, perp. to $vv$. So $nv, nv_1, uv$ is an orthonormal basis for $3$-space.
We want to transform the second basis to the first. Let's assume everything is written as column vectors, and let $K = pmatrix{vv& nv_1 & uv}$ be the matrix with $vv, nv_1, $ and $uv$ as its columns, and let $L = pmatrix{vv& nv_2 & wv}$ be similarly constructed.
Let $R = L K^t$. Then $R$ is a rotation taking the first plane to the second.
Let's work through those general steps for your particular case, where $nv_1 = pmatrix{-3/5 \ 4/5 \ 0}$ and $nv2 = pmatrix{0 \ 0 \ 1}$ are the normal vectors for the two planes. As it happens, because your two normal vectors are already perpendicular, something very simple happens along the way, but you may find yourself wanting to solve the more general problem later, which is why I gave the more general answer above.
Compute $nv_1 times nv_2 = pmatrix{4/5 \ 3/5 \ 0}$. The length of this vector happens to be $1$, so dividing by that length gives $vv = pmatrix{4/5 \ 3/5 \ 0}$.
Compute $wv = vv times nv_2 = pmatrix{3/5\-4/5 \ 0}$.
Compute $uv = vv times nv_1 = pmatrix{0\0\1}$.
We let
$$
K = pmatrix{
4/5 & -3/5 & 0 \
3/5 & 4/5 & 0\
0 & 0 & 1},
L = pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
$$- We compute
$$
M = LK^t =
pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
pmatrix{
4/5 & 3/5 & 0 \
-3/5 & 4/5 & 0\
0 & 0 & 1} =
pmatrix{
16/25 & 12/25 & 3/5 \
12/25 & 9/25 & -4/5\
-3/5 & 4/5 & 0}
$$
... and that should be your matrix.
$$
newcommand {vv} {mathbf v}
newcommand {nv} {mathbf n}
newcommand {uv} {mathbf u}
newcommand {wv} {mathbf w}
$$
The main problem is that there is not just one rotation of $Bbb R^3$ that takes the first plane to the second. Suppose you had such a rotation, $R$, and followed it by another rotation $T$ that rotates in the second plane (spinning around its normal vector by, say, 30 degrees). Composing those two rotations to get $S = T circ $ would give you a different rotation from the first plane to the second.
But typically in a question like this, what you want is a rotation from the first plane (I"m going to call that $P_1$, with normal vector $nv_1$) to the second ($P_2$, normal vector $nv_2$) with the additional property that the rotation doesn't move the line of intersection between the two planes.
That's not so hard to construct, surprisingly.
Let $vv = nv_1 times nv_2 / |nv_1 times nv_2 |$; that's one of the two unit vectors in the intersection $P_1 times P_2$.
Let $wv = vv times nv_2$; that's a unit vector lying in the second plane, perpendicular to $vv$. So $vv, nv_2, wv$ is an orthonormal basis for 3-space.
Let $uv = vv times nv_1$; that's a unit vector in the first plane, perp. to $vv$. So $nv, nv_1, uv$ is an orthonormal basis for $3$-space.
We want to transform the second basis to the first. Let's assume everything is written as column vectors, and let $K = pmatrix{vv& nv_1 & uv}$ be the matrix with $vv, nv_1, $ and $uv$ as its columns, and let $L = pmatrix{vv& nv_2 & wv}$ be similarly constructed.
Let $R = L K^t$. Then $R$ is a rotation taking the first plane to the second.
Let's work through those general steps for your particular case, where $nv_1 = pmatrix{-3/5 \ 4/5 \ 0}$ and $nv2 = pmatrix{0 \ 0 \ 1}$ are the normal vectors for the two planes. As it happens, because your two normal vectors are already perpendicular, something very simple happens along the way, but you may find yourself wanting to solve the more general problem later, which is why I gave the more general answer above.
Compute $nv_1 times nv_2 = pmatrix{4/5 \ 3/5 \ 0}$. The length of this vector happens to be $1$, so dividing by that length gives $vv = pmatrix{4/5 \ 3/5 \ 0}$.
Compute $wv = vv times nv_2 = pmatrix{3/5\-4/5 \ 0}$.
Compute $uv = vv times nv_1 = pmatrix{0\0\1}$.
We let
$$
K = pmatrix{
4/5 & -3/5 & 0 \
3/5 & 4/5 & 0\
0 & 0 & 1},
L = pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
$$- We compute
$$
M = LK^t =
pmatrix{
4/5 & 0 & 3/5\
3/5 & 0 & -4/5\
0 & 1 & 0}
pmatrix{
4/5 & 3/5 & 0 \
-3/5 & 4/5 & 0\
0 & 0 & 1} =
pmatrix{
16/25 & 12/25 & 3/5 \
12/25 & 9/25 & -4/5\
-3/5 & 4/5 & 0}
$$
... and that should be your matrix.
edited Nov 25 at 14:52
answered Nov 25 at 14:36
John Hughes
62.3k24090
62.3k24090
Thanks for your answer. I actually understood how to construct one now. But I might have looked for the wrong solution regarding my initial problem (which I was too shy to ask here). Maybe for educational reasons I'll ask another questions where projection will be the right answer as my research didn't give me that on.
– Patrick B.
Nov 25 at 17:05
add a comment |
Thanks for your answer. I actually understood how to construct one now. But I might have looked for the wrong solution regarding my initial problem (which I was too shy to ask here). Maybe for educational reasons I'll ask another questions where projection will be the right answer as my research didn't give me that on.
– Patrick B.
Nov 25 at 17:05
Thanks for your answer. I actually understood how to construct one now. But I might have looked for the wrong solution regarding my initial problem (which I was too shy to ask here). Maybe for educational reasons I'll ask another questions where projection will be the right answer as my research didn't give me that on.
– Patrick B.
Nov 25 at 17:05
Thanks for your answer. I actually understood how to construct one now. But I might have looked for the wrong solution regarding my initial problem (which I was too shy to ask here). Maybe for educational reasons I'll ask another questions where projection will be the right answer as my research didn't give me that on.
– Patrick B.
Nov 25 at 17:05
add a comment |
My goal is to find the coordinates of any point $P$ of $e$ on $f$.
Looks like what you need is actually a projection of any point ${bf . x}in e$ onto $f$. Call $hat{n}_f$ a normal vector of the plane $f$, in your case
$$
hat{n}_f = pmatrix{0 \ 0 \ 1}
$$
Now, calculate
$$
{bf x}_f = {bf x} - ({bf x}cdothat{n}_f)hat{n}_f
$$
Hmm, it seems to work actually like this. Did I go in the wrong direction in the first place? I'll try this with my real world problem to whether I actually understood my problem in the first place. Thanks.
– Patrick B.
Nov 25 at 17:02
No, I definitely don't want a projection. I need a rotation. The distance of the point from (0,0,0) needs to be the same on both planes.
– Patrick B.
Dec 2 at 9:10
add a comment |
My goal is to find the coordinates of any point $P$ of $e$ on $f$.
Looks like what you need is actually a projection of any point ${bf . x}in e$ onto $f$. Call $hat{n}_f$ a normal vector of the plane $f$, in your case
$$
hat{n}_f = pmatrix{0 \ 0 \ 1}
$$
Now, calculate
$$
{bf x}_f = {bf x} - ({bf x}cdothat{n}_f)hat{n}_f
$$
Hmm, it seems to work actually like this. Did I go in the wrong direction in the first place? I'll try this with my real world problem to whether I actually understood my problem in the first place. Thanks.
– Patrick B.
Nov 25 at 17:02
No, I definitely don't want a projection. I need a rotation. The distance of the point from (0,0,0) needs to be the same on both planes.
– Patrick B.
Dec 2 at 9:10
add a comment |
My goal is to find the coordinates of any point $P$ of $e$ on $f$.
Looks like what you need is actually a projection of any point ${bf . x}in e$ onto $f$. Call $hat{n}_f$ a normal vector of the plane $f$, in your case
$$
hat{n}_f = pmatrix{0 \ 0 \ 1}
$$
Now, calculate
$$
{bf x}_f = {bf x} - ({bf x}cdothat{n}_f)hat{n}_f
$$
My goal is to find the coordinates of any point $P$ of $e$ on $f$.
Looks like what you need is actually a projection of any point ${bf . x}in e$ onto $f$. Call $hat{n}_f$ a normal vector of the plane $f$, in your case
$$
hat{n}_f = pmatrix{0 \ 0 \ 1}
$$
Now, calculate
$$
{bf x}_f = {bf x} - ({bf x}cdothat{n}_f)hat{n}_f
$$
answered Nov 25 at 14:36
caverac
13k21028
13k21028
Hmm, it seems to work actually like this. Did I go in the wrong direction in the first place? I'll try this with my real world problem to whether I actually understood my problem in the first place. Thanks.
– Patrick B.
Nov 25 at 17:02
No, I definitely don't want a projection. I need a rotation. The distance of the point from (0,0,0) needs to be the same on both planes.
– Patrick B.
Dec 2 at 9:10
add a comment |
Hmm, it seems to work actually like this. Did I go in the wrong direction in the first place? I'll try this with my real world problem to whether I actually understood my problem in the first place. Thanks.
– Patrick B.
Nov 25 at 17:02
No, I definitely don't want a projection. I need a rotation. The distance of the point from (0,0,0) needs to be the same on both planes.
– Patrick B.
Dec 2 at 9:10
Hmm, it seems to work actually like this. Did I go in the wrong direction in the first place? I'll try this with my real world problem to whether I actually understood my problem in the first place. Thanks.
– Patrick B.
Nov 25 at 17:02
Hmm, it seems to work actually like this. Did I go in the wrong direction in the first place? I'll try this with my real world problem to whether I actually understood my problem in the first place. Thanks.
– Patrick B.
Nov 25 at 17:02
No, I definitely don't want a projection. I need a rotation. The distance of the point from (0,0,0) needs to be the same on both planes.
– Patrick B.
Dec 2 at 9:10
No, I definitely don't want a projection. I need a rotation. The distance of the point from (0,0,0) needs to be the same on both planes.
– Patrick B.
Dec 2 at 9:10
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3012870%2fhow-to-create-rotation-matrix-in-3d-space%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown