Given a vector and angle find new vector
$begingroup$
Given a vector and an angle, how can i find an vector that the angle between the two vector is exactly the given angle?
Edit:
We are in the n-dimensional space and the new vector has a fixed given length.
vector-spaces
$endgroup$
add a comment |
$begingroup$
Given a vector and an angle, how can i find an vector that the angle between the two vector is exactly the given angle?
Edit:
We are in the n-dimensional space and the new vector has a fixed given length.
vector-spaces
$endgroup$
$begingroup$
Unless $n=2$, there exist infinitely many vectors that satisfy your requirement.
$endgroup$
– 5xum
Sep 2 '15 at 11:40
$begingroup$
@5xum is it possible to describe all vectors through linear combinations of finite many vectors?
$endgroup$
– testy
Sep 2 '15 at 11:44
add a comment |
$begingroup$
Given a vector and an angle, how can i find an vector that the angle between the two vector is exactly the given angle?
Edit:
We are in the n-dimensional space and the new vector has a fixed given length.
vector-spaces
$endgroup$
Given a vector and an angle, how can i find an vector that the angle between the two vector is exactly the given angle?
Edit:
We are in the n-dimensional space and the new vector has a fixed given length.
vector-spaces
vector-spaces
edited Sep 2 '15 at 11:39
testy
asked Sep 2 '15 at 11:30
testytesty
11
11
$begingroup$
Unless $n=2$, there exist infinitely many vectors that satisfy your requirement.
$endgroup$
– 5xum
Sep 2 '15 at 11:40
$begingroup$
@5xum is it possible to describe all vectors through linear combinations of finite many vectors?
$endgroup$
– testy
Sep 2 '15 at 11:44
add a comment |
$begingroup$
Unless $n=2$, there exist infinitely many vectors that satisfy your requirement.
$endgroup$
– 5xum
Sep 2 '15 at 11:40
$begingroup$
@5xum is it possible to describe all vectors through linear combinations of finite many vectors?
$endgroup$
– testy
Sep 2 '15 at 11:44
$begingroup$
Unless $n=2$, there exist infinitely many vectors that satisfy your requirement.
$endgroup$
– 5xum
Sep 2 '15 at 11:40
$begingroup$
Unless $n=2$, there exist infinitely many vectors that satisfy your requirement.
$endgroup$
– 5xum
Sep 2 '15 at 11:40
$begingroup$
@5xum is it possible to describe all vectors through linear combinations of finite many vectors?
$endgroup$
– testy
Sep 2 '15 at 11:44
$begingroup$
@5xum is it possible to describe all vectors through linear combinations of finite many vectors?
$endgroup$
– testy
Sep 2 '15 at 11:44
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Assuming you are in $mathbb R^2$ take the rotation matrix
$$begin{bmatrix}
cos theta & -sin theta \
sin theta & cos theta \
end{bmatrix}$$
where $theta$ is your angle and multiply it with your vector.
For a vector $vinmathbb R^n$ with $n>2$ you should first decide in which plain you want to apply the rotation. Find an orthonormal basis $(b_i)_{1le ile n}$ of $mathbb R^n$ such that $b_1$ and $b_2$ span your rotation plain and $vinoperatorname{span}(b_1,b_2)$. Now you can translate the rotation from above into that plain. Actually you don't have to care about $b_i$ for $i>2$ since nothing will change there.
$endgroup$
$begingroup$
we are in the n-dimensional space
$endgroup$
– testy
Sep 2 '15 at 11:32
$begingroup$
@testy See my edit.
$endgroup$
– principal-ideal-domain
Sep 2 '15 at 11:40
add a comment |
$begingroup$
Find another vector that is not linearly dependent on the first (should be easy if you have more than one dimension), then you use that to construct a normal vector and last you combine the first and the normal vector to construct your final vector.
Let's say your original vector is $u$ and then select one of the basis vectors $e_j$ (you may have to select carefully if $u$ is parallel to some of the axes). Now $v = e_j - (e_jcdot u)u/u^2$ is perpendicular to $u$:
$vcdot u = e_jcdot u - (e_jcdot u)u^2/u^2 = 0$
Then we just combine $u$ and $v$:
$w = ucos(alpha) + vsin(alpha)$
In the special case where there is two dimensions one could immediately select $v$ as $(-u_y, u_x)$ resulting in just applying a rotation matrix:
$$begin{bmatrix}
cos alpha & -sin alpha \
sin alpha & cos alpha \
end{bmatrix}$$
$endgroup$
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%2f1418262%2fgiven-a-vector-and-angle-find-new-vector%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
$begingroup$
Assuming you are in $mathbb R^2$ take the rotation matrix
$$begin{bmatrix}
cos theta & -sin theta \
sin theta & cos theta \
end{bmatrix}$$
where $theta$ is your angle and multiply it with your vector.
For a vector $vinmathbb R^n$ with $n>2$ you should first decide in which plain you want to apply the rotation. Find an orthonormal basis $(b_i)_{1le ile n}$ of $mathbb R^n$ such that $b_1$ and $b_2$ span your rotation plain and $vinoperatorname{span}(b_1,b_2)$. Now you can translate the rotation from above into that plain. Actually you don't have to care about $b_i$ for $i>2$ since nothing will change there.
$endgroup$
$begingroup$
we are in the n-dimensional space
$endgroup$
– testy
Sep 2 '15 at 11:32
$begingroup$
@testy See my edit.
$endgroup$
– principal-ideal-domain
Sep 2 '15 at 11:40
add a comment |
$begingroup$
Assuming you are in $mathbb R^2$ take the rotation matrix
$$begin{bmatrix}
cos theta & -sin theta \
sin theta & cos theta \
end{bmatrix}$$
where $theta$ is your angle and multiply it with your vector.
For a vector $vinmathbb R^n$ with $n>2$ you should first decide in which plain you want to apply the rotation. Find an orthonormal basis $(b_i)_{1le ile n}$ of $mathbb R^n$ such that $b_1$ and $b_2$ span your rotation plain and $vinoperatorname{span}(b_1,b_2)$. Now you can translate the rotation from above into that plain. Actually you don't have to care about $b_i$ for $i>2$ since nothing will change there.
$endgroup$
$begingroup$
we are in the n-dimensional space
$endgroup$
– testy
Sep 2 '15 at 11:32
$begingroup$
@testy See my edit.
$endgroup$
– principal-ideal-domain
Sep 2 '15 at 11:40
add a comment |
$begingroup$
Assuming you are in $mathbb R^2$ take the rotation matrix
$$begin{bmatrix}
cos theta & -sin theta \
sin theta & cos theta \
end{bmatrix}$$
where $theta$ is your angle and multiply it with your vector.
For a vector $vinmathbb R^n$ with $n>2$ you should first decide in which plain you want to apply the rotation. Find an orthonormal basis $(b_i)_{1le ile n}$ of $mathbb R^n$ such that $b_1$ and $b_2$ span your rotation plain and $vinoperatorname{span}(b_1,b_2)$. Now you can translate the rotation from above into that plain. Actually you don't have to care about $b_i$ for $i>2$ since nothing will change there.
$endgroup$
Assuming you are in $mathbb R^2$ take the rotation matrix
$$begin{bmatrix}
cos theta & -sin theta \
sin theta & cos theta \
end{bmatrix}$$
where $theta$ is your angle and multiply it with your vector.
For a vector $vinmathbb R^n$ with $n>2$ you should first decide in which plain you want to apply the rotation. Find an orthonormal basis $(b_i)_{1le ile n}$ of $mathbb R^n$ such that $b_1$ and $b_2$ span your rotation plain and $vinoperatorname{span}(b_1,b_2)$. Now you can translate the rotation from above into that plain. Actually you don't have to care about $b_i$ for $i>2$ since nothing will change there.
edited Sep 2 '15 at 11:40
answered Sep 2 '15 at 11:32
principal-ideal-domainprincipal-ideal-domain
2,736521
2,736521
$begingroup$
we are in the n-dimensional space
$endgroup$
– testy
Sep 2 '15 at 11:32
$begingroup$
@testy See my edit.
$endgroup$
– principal-ideal-domain
Sep 2 '15 at 11:40
add a comment |
$begingroup$
we are in the n-dimensional space
$endgroup$
– testy
Sep 2 '15 at 11:32
$begingroup$
@testy See my edit.
$endgroup$
– principal-ideal-domain
Sep 2 '15 at 11:40
$begingroup$
we are in the n-dimensional space
$endgroup$
– testy
Sep 2 '15 at 11:32
$begingroup$
we are in the n-dimensional space
$endgroup$
– testy
Sep 2 '15 at 11:32
$begingroup$
@testy See my edit.
$endgroup$
– principal-ideal-domain
Sep 2 '15 at 11:40
$begingroup$
@testy See my edit.
$endgroup$
– principal-ideal-domain
Sep 2 '15 at 11:40
add a comment |
$begingroup$
Find another vector that is not linearly dependent on the first (should be easy if you have more than one dimension), then you use that to construct a normal vector and last you combine the first and the normal vector to construct your final vector.
Let's say your original vector is $u$ and then select one of the basis vectors $e_j$ (you may have to select carefully if $u$ is parallel to some of the axes). Now $v = e_j - (e_jcdot u)u/u^2$ is perpendicular to $u$:
$vcdot u = e_jcdot u - (e_jcdot u)u^2/u^2 = 0$
Then we just combine $u$ and $v$:
$w = ucos(alpha) + vsin(alpha)$
In the special case where there is two dimensions one could immediately select $v$ as $(-u_y, u_x)$ resulting in just applying a rotation matrix:
$$begin{bmatrix}
cos alpha & -sin alpha \
sin alpha & cos alpha \
end{bmatrix}$$
$endgroup$
add a comment |
$begingroup$
Find another vector that is not linearly dependent on the first (should be easy if you have more than one dimension), then you use that to construct a normal vector and last you combine the first and the normal vector to construct your final vector.
Let's say your original vector is $u$ and then select one of the basis vectors $e_j$ (you may have to select carefully if $u$ is parallel to some of the axes). Now $v = e_j - (e_jcdot u)u/u^2$ is perpendicular to $u$:
$vcdot u = e_jcdot u - (e_jcdot u)u^2/u^2 = 0$
Then we just combine $u$ and $v$:
$w = ucos(alpha) + vsin(alpha)$
In the special case where there is two dimensions one could immediately select $v$ as $(-u_y, u_x)$ resulting in just applying a rotation matrix:
$$begin{bmatrix}
cos alpha & -sin alpha \
sin alpha & cos alpha \
end{bmatrix}$$
$endgroup$
add a comment |
$begingroup$
Find another vector that is not linearly dependent on the first (should be easy if you have more than one dimension), then you use that to construct a normal vector and last you combine the first and the normal vector to construct your final vector.
Let's say your original vector is $u$ and then select one of the basis vectors $e_j$ (you may have to select carefully if $u$ is parallel to some of the axes). Now $v = e_j - (e_jcdot u)u/u^2$ is perpendicular to $u$:
$vcdot u = e_jcdot u - (e_jcdot u)u^2/u^2 = 0$
Then we just combine $u$ and $v$:
$w = ucos(alpha) + vsin(alpha)$
In the special case where there is two dimensions one could immediately select $v$ as $(-u_y, u_x)$ resulting in just applying a rotation matrix:
$$begin{bmatrix}
cos alpha & -sin alpha \
sin alpha & cos alpha \
end{bmatrix}$$
$endgroup$
Find another vector that is not linearly dependent on the first (should be easy if you have more than one dimension), then you use that to construct a normal vector and last you combine the first and the normal vector to construct your final vector.
Let's say your original vector is $u$ and then select one of the basis vectors $e_j$ (you may have to select carefully if $u$ is parallel to some of the axes). Now $v = e_j - (e_jcdot u)u/u^2$ is perpendicular to $u$:
$vcdot u = e_jcdot u - (e_jcdot u)u^2/u^2 = 0$
Then we just combine $u$ and $v$:
$w = ucos(alpha) + vsin(alpha)$
In the special case where there is two dimensions one could immediately select $v$ as $(-u_y, u_x)$ resulting in just applying a rotation matrix:
$$begin{bmatrix}
cos alpha & -sin alpha \
sin alpha & cos alpha \
end{bmatrix}$$
edited Sep 2 '15 at 11:43
answered Sep 2 '15 at 11:35
skykingskyking
14.3k1929
14.3k1929
add a comment |
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.
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%2f1418262%2fgiven-a-vector-and-angle-find-new-vector%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
$begingroup$
Unless $n=2$, there exist infinitely many vectors that satisfy your requirement.
$endgroup$
– 5xum
Sep 2 '15 at 11:40
$begingroup$
@5xum is it possible to describe all vectors through linear combinations of finite many vectors?
$endgroup$
– testy
Sep 2 '15 at 11:44