Find the coordinate of two line segments that are perpendicularcalculating perpendicular and angular distance between line segments in 3dPerpendicular line passing through the midpoint of another lineFind points on perpendicular lineAngle between two line segmentsFind two points on two lines in the plane where the line between the two points go through a third point and are equidistant from that pointModelling the difference between intersections of two lines on the circumference of a circleUsing vector math to get point on perpendicular line from a point with the same YFind the point of intersection between a line segment $AC$ and a perpendicular line going through a point $B$ not on $AC$How to find the coordinates of points on a line perpendicular to a given planeShortest distance between skew line *segments*
Is latino sine flexione dead?
Getting a W on your transcript for grad school applications
Point of the the Dothraki's attack in GoT S8E3?
How do I tell my manager that his code review comment is wrong?
Missing Piece of Pie - Can you find it?
How important is people skills in academic career and applications?
Have I damaged my car by attempting to reverse with hand/park brake up?
String won't reverse using reverse_copy
Would glacier 'trees' be plausible?
I drew a randomly colored grid of points with tikz, how do I force it to remember the first grid from then on?
How wide is a neg symbol, how to get the width for alignment?
How do LIGO and VIRGO know that a gravitational wave has its origin in a neutron star or a black hole?
I have a unique character that I'm having a problem writing. He's a virus!
Why do money exchangers give different rates to different bills?
Can an isometry leave entropy invariant?
What matters more when it comes to book covers? Is it ‘professional quality’ or relevancy?
Why didn't the check-in agent recognize my long term visa?
Why did the Apollo 13 crew extend the LM landing gear?
What property of a BJT transistor makes it an amplifier?
Is there an idiom that support the idea that "inflation is bad"?
How I can I roll a number of non-digital dice to get a random number between 1 and 150?
If I readied a spell with the trigger "When I take damage", do I have to make a constitution saving throw to avoid losing Concentration?
Understanding trademark infringements in a world where many dictionary words are trademarks?
Can Infinity Stones be retrieved more than once?
Find the coordinate of two line segments that are perpendicular
calculating perpendicular and angular distance between line segments in 3dPerpendicular line passing through the midpoint of another lineFind points on perpendicular lineAngle between two line segmentsFind two points on two lines in the plane where the line between the two points go through a third point and are equidistant from that pointModelling the difference between intersections of two lines on the circumference of a circleUsing vector math to get point on perpendicular line from a point with the same YFind the point of intersection between a line segment $AC$ and a perpendicular line going through a point $B$ not on $AC$How to find the coordinates of points on a line perpendicular to a given planeShortest distance between skew line *segments*
$begingroup$
How can the x,y position (actually will need in 3d but for simplicity asking in 2d) of a point be found if it is the intersection of two perpendicular line segments.
I have two points, $p_1$ and $p_2$ that are known $x,y$ locations. I also have line segments with known lengths $a$ and $b$. I made a diagram below to illustrate the problem.
geometry trigonometry
$endgroup$
add a comment |
$begingroup$
How can the x,y position (actually will need in 3d but for simplicity asking in 2d) of a point be found if it is the intersection of two perpendicular line segments.
I have two points, $p_1$ and $p_2$ that are known $x,y$ locations. I also have line segments with known lengths $a$ and $b$. I made a diagram below to illustrate the problem.
geometry trigonometry
$endgroup$
$begingroup$
If the lengths $a$ and $b$ are fixed, then you must also have $lVert p_1-p_2rVert^2=a^2+b^2$ for there to be any solution at all. It this condition is meth, then there can be up to four solutions, two if $p_1$ must be an endpoint of $a$ and $p_2$ must be an endpoint of $b$.
$endgroup$
– amd
Apr 28 at 21:52
$begingroup$
@amd yes p1 and p2 are the endpoints of a and b. I need their mutual endpoint
$endgroup$
– user1938107
Apr 28 at 22:28
add a comment |
$begingroup$
How can the x,y position (actually will need in 3d but for simplicity asking in 2d) of a point be found if it is the intersection of two perpendicular line segments.
I have two points, $p_1$ and $p_2$ that are known $x,y$ locations. I also have line segments with known lengths $a$ and $b$. I made a diagram below to illustrate the problem.
geometry trigonometry
$endgroup$
How can the x,y position (actually will need in 3d but for simplicity asking in 2d) of a point be found if it is the intersection of two perpendicular line segments.
I have two points, $p_1$ and $p_2$ that are known $x,y$ locations. I also have line segments with known lengths $a$ and $b$. I made a diagram below to illustrate the problem.
geometry trigonometry
geometry trigonometry
asked Apr 28 at 21:02
user1938107user1938107
16510
16510
$begingroup$
If the lengths $a$ and $b$ are fixed, then you must also have $lVert p_1-p_2rVert^2=a^2+b^2$ for there to be any solution at all. It this condition is meth, then there can be up to four solutions, two if $p_1$ must be an endpoint of $a$ and $p_2$ must be an endpoint of $b$.
$endgroup$
– amd
Apr 28 at 21:52
$begingroup$
@amd yes p1 and p2 are the endpoints of a and b. I need their mutual endpoint
$endgroup$
– user1938107
Apr 28 at 22:28
add a comment |
$begingroup$
If the lengths $a$ and $b$ are fixed, then you must also have $lVert p_1-p_2rVert^2=a^2+b^2$ for there to be any solution at all. It this condition is meth, then there can be up to four solutions, two if $p_1$ must be an endpoint of $a$ and $p_2$ must be an endpoint of $b$.
$endgroup$
– amd
Apr 28 at 21:52
$begingroup$
@amd yes p1 and p2 are the endpoints of a and b. I need their mutual endpoint
$endgroup$
– user1938107
Apr 28 at 22:28
$begingroup$
If the lengths $a$ and $b$ are fixed, then you must also have $lVert p_1-p_2rVert^2=a^2+b^2$ for there to be any solution at all. It this condition is meth, then there can be up to four solutions, two if $p_1$ must be an endpoint of $a$ and $p_2$ must be an endpoint of $b$.
$endgroup$
– amd
Apr 28 at 21:52
$begingroup$
If the lengths $a$ and $b$ are fixed, then you must also have $lVert p_1-p_2rVert^2=a^2+b^2$ for there to be any solution at all. It this condition is meth, then there can be up to four solutions, two if $p_1$ must be an endpoint of $a$ and $p_2$ must be an endpoint of $b$.
$endgroup$
– amd
Apr 28 at 21:52
$begingroup$
@amd yes p1 and p2 are the endpoints of a and b. I need their mutual endpoint
$endgroup$
– user1938107
Apr 28 at 22:28
$begingroup$
@amd yes p1 and p2 are the endpoints of a and b. I need their mutual endpoint
$endgroup$
– user1938107
Apr 28 at 22:28
add a comment |
4 Answers
4
active
oldest
votes
$begingroup$
If you draw a circle with diameter $sqrta^2+b^2$ then $p_3$ can be either of two points on that circle.
In two dimensions...
Let $vec i$ be the unit vector in the direction of the
vector $overrightarrowp_1p_2=dfracp_2-p_1$ Let $vec j$ be a unit vector perpendicular to $vec i$. (If $vec i = langle u,vrangle$, then, for example, $vec j = langle-v, urangle$.) Then
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i pm
dfracabsqrta^2+b^2 vec j$$
See here for details.
In three dimesions, there will be a circle of possible points.
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i +
dfracabsqrta^2+b^2cos(theta) vec j +
dfracabsqrta^2+b^2sin(theta) vec k$$
$endgroup$
$begingroup$
The lengths $a$ and $b$ are also fixed so this doesn't completely work.
$endgroup$
– AHusain
Apr 28 at 21:20
$begingroup$
Sorry, this answer should have been a comment.
$endgroup$
– steven gregory
Apr 28 at 21:30
$begingroup$
sure, but how can I find where that point is on the circle?
$endgroup$
– user1938107
Apr 28 at 21:37
add a comment |
$begingroup$
Sometimes a figure is worth a 1000 words:
In three dimensions:
$endgroup$
2
$begingroup$
The picture is nice, but it doesn't seem to answer the question. Does it?
$endgroup$
– Taladris
2 days ago
$begingroup$
This is really helpful, thank you. It seems to be the visualization of steven gregory answer right?
$endgroup$
– user1938107
2 days ago
add a comment |
$begingroup$
Let $ell$ be the distance between $p_1$ and $p_2$, and let $p_3$ be the point where the two line segments will meet.
The three points $p_1, p_2, p_3$ form a triangle whose side lengths we know: $a, b, ell$.
We can find out where $p_3$ is by measuring properties of this triangle. Draw a perpendicular altitude from $p_3$ down to the side of the triangle between $p_1$ and $p_2$. Call the intersection point $p_4$.
If we knew the length $h$ of this altitude, we would know where to put $p_3$. First, we could find out where $p_4$ is. By the Pythagorean theorem, the distance between $p_1$ and $p_4$ is $sqrta^2 - h^2$. So
$$p_4 = p_1 + fracsqrta^2-h^2ell (p_2 - p_1)$$Next, we would use $p_4$ to find out where to put $p_3$. We start from $p_4$ and travel a distance $h$ in a direction perpendicular to the $p_1$ $p_2$ base of the triangle.
In two dimensions, we have two choices of perpendicular direction. In three dimensions, we actually have an infinite number of perpendicular directions[*], so you'll have to pick one. Pick a unit vector $widehatu$ in a perpendicular direction.
Then $p_3 = p_4 + hcdot widehatu$, which gives you the answer you want.
But how do we find $h$? We can find $h$ if we know the area of the triangle. Heron's formula lets you calculate the area of the triangle when you know the length of all the sides. $A = sqrts(s-a)(s-b)(s-ell)$, where $s$ is half the perimeter $s = (a+b+ell)/2$. Once you have the area, you can calculate the height of the altitude: $A = frac12textbasetimestextheight$, so $h = 2A/ell$.
[*] In 3D, you have an infinite number of perpendicular directions. Imagine $p_1=langle 0,0rangle$ and $p_2 = langle 1,0rangle$, and $a$ and $b$ are some numbers. There's a satisfactory point $p_3$ in the x-y plane. But if you spin $p_3$ around the $x$-axis, you find an infinite number of other satisfactory points too.
$endgroup$
add a comment |
$begingroup$
As I mentioned in my comment, there is no solution unless $a^2+b^2=lvert P_1P_2rvert^2$. Let $Q$ be the point $(x_3,y_3)$, $R$ the foot of the perpendicular from $Q$ to $overlineP_1P_2$, and $c = lvert P_1P_2rvert$. $triangleP_1QP_2$, $triangleP_1RQ$ and $triangleQRP_2$ are all similar, therefore $lvert P_1Rrvert = a^2/c$, which means that $$R = left(1-a^2over c^2right)P_1+a^2over c^2 P_2.$$ Similarly, $lvert QRrvert = (ab)/c$ and a unit vector perpendicular to $overlineP_1P_2$ is $frac1c(y_1-y_2,x_2-x_1)$, therefore the two solutions are $$Q=Rpmabover c^2(y_1-y_2,x_2-x_1).$$
In three dimensions, there is an infinite number of solutions that lie on a circle of radius $(ab)/c$ centered at $R$ and in a plane perpendicular to $overlineP_1P_2$.
$endgroup$
add a comment |
Your Answer
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%2f3206136%2ffind-the-coordinate-of-two-line-segments-that-are-perpendicular%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
If you draw a circle with diameter $sqrta^2+b^2$ then $p_3$ can be either of two points on that circle.
In two dimensions...
Let $vec i$ be the unit vector in the direction of the
vector $overrightarrowp_1p_2=dfracp_2-p_1$ Let $vec j$ be a unit vector perpendicular to $vec i$. (If $vec i = langle u,vrangle$, then, for example, $vec j = langle-v, urangle$.) Then
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i pm
dfracabsqrta^2+b^2 vec j$$
See here for details.
In three dimesions, there will be a circle of possible points.
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i +
dfracabsqrta^2+b^2cos(theta) vec j +
dfracabsqrta^2+b^2sin(theta) vec k$$
$endgroup$
$begingroup$
The lengths $a$ and $b$ are also fixed so this doesn't completely work.
$endgroup$
– AHusain
Apr 28 at 21:20
$begingroup$
Sorry, this answer should have been a comment.
$endgroup$
– steven gregory
Apr 28 at 21:30
$begingroup$
sure, but how can I find where that point is on the circle?
$endgroup$
– user1938107
Apr 28 at 21:37
add a comment |
$begingroup$
If you draw a circle with diameter $sqrta^2+b^2$ then $p_3$ can be either of two points on that circle.
In two dimensions...
Let $vec i$ be the unit vector in the direction of the
vector $overrightarrowp_1p_2=dfracp_2-p_1$ Let $vec j$ be a unit vector perpendicular to $vec i$. (If $vec i = langle u,vrangle$, then, for example, $vec j = langle-v, urangle$.) Then
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i pm
dfracabsqrta^2+b^2 vec j$$
See here for details.
In three dimesions, there will be a circle of possible points.
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i +
dfracabsqrta^2+b^2cos(theta) vec j +
dfracabsqrta^2+b^2sin(theta) vec k$$
$endgroup$
$begingroup$
The lengths $a$ and $b$ are also fixed so this doesn't completely work.
$endgroup$
– AHusain
Apr 28 at 21:20
$begingroup$
Sorry, this answer should have been a comment.
$endgroup$
– steven gregory
Apr 28 at 21:30
$begingroup$
sure, but how can I find where that point is on the circle?
$endgroup$
– user1938107
Apr 28 at 21:37
add a comment |
$begingroup$
If you draw a circle with diameter $sqrta^2+b^2$ then $p_3$ can be either of two points on that circle.
In two dimensions...
Let $vec i$ be the unit vector in the direction of the
vector $overrightarrowp_1p_2=dfracp_2-p_1$ Let $vec j$ be a unit vector perpendicular to $vec i$. (If $vec i = langle u,vrangle$, then, for example, $vec j = langle-v, urangle$.) Then
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i pm
dfracabsqrta^2+b^2 vec j$$
See here for details.
In three dimesions, there will be a circle of possible points.
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i +
dfracabsqrta^2+b^2cos(theta) vec j +
dfracabsqrta^2+b^2sin(theta) vec k$$
$endgroup$
If you draw a circle with diameter $sqrta^2+b^2$ then $p_3$ can be either of two points on that circle.
In two dimensions...
Let $vec i$ be the unit vector in the direction of the
vector $overrightarrowp_1p_2=dfracp_2-p_1$ Let $vec j$ be a unit vector perpendicular to $vec i$. (If $vec i = langle u,vrangle$, then, for example, $vec j = langle-v, urangle$.) Then
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i pm
dfracabsqrta^2+b^2 vec j$$
See here for details.
In three dimesions, there will be a circle of possible points.
$$overrightarrowp_1p_3 =
dfraca^2sqrta^2+b^2 vec i +
dfracabsqrta^2+b^2cos(theta) vec j +
dfracabsqrta^2+b^2sin(theta) vec k$$
edited 2 days ago
answered Apr 28 at 21:16
steven gregorysteven gregory
18.6k32559
18.6k32559
$begingroup$
The lengths $a$ and $b$ are also fixed so this doesn't completely work.
$endgroup$
– AHusain
Apr 28 at 21:20
$begingroup$
Sorry, this answer should have been a comment.
$endgroup$
– steven gregory
Apr 28 at 21:30
$begingroup$
sure, but how can I find where that point is on the circle?
$endgroup$
– user1938107
Apr 28 at 21:37
add a comment |
$begingroup$
The lengths $a$ and $b$ are also fixed so this doesn't completely work.
$endgroup$
– AHusain
Apr 28 at 21:20
$begingroup$
Sorry, this answer should have been a comment.
$endgroup$
– steven gregory
Apr 28 at 21:30
$begingroup$
sure, but how can I find where that point is on the circle?
$endgroup$
– user1938107
Apr 28 at 21:37
$begingroup$
The lengths $a$ and $b$ are also fixed so this doesn't completely work.
$endgroup$
– AHusain
Apr 28 at 21:20
$begingroup$
The lengths $a$ and $b$ are also fixed so this doesn't completely work.
$endgroup$
– AHusain
Apr 28 at 21:20
$begingroup$
Sorry, this answer should have been a comment.
$endgroup$
– steven gregory
Apr 28 at 21:30
$begingroup$
Sorry, this answer should have been a comment.
$endgroup$
– steven gregory
Apr 28 at 21:30
$begingroup$
sure, but how can I find where that point is on the circle?
$endgroup$
– user1938107
Apr 28 at 21:37
$begingroup$
sure, but how can I find where that point is on the circle?
$endgroup$
– user1938107
Apr 28 at 21:37
add a comment |
$begingroup$
Sometimes a figure is worth a 1000 words:
In three dimensions:
$endgroup$
2
$begingroup$
The picture is nice, but it doesn't seem to answer the question. Does it?
$endgroup$
– Taladris
2 days ago
$begingroup$
This is really helpful, thank you. It seems to be the visualization of steven gregory answer right?
$endgroup$
– user1938107
2 days ago
add a comment |
$begingroup$
Sometimes a figure is worth a 1000 words:
In three dimensions:
$endgroup$
2
$begingroup$
The picture is nice, but it doesn't seem to answer the question. Does it?
$endgroup$
– Taladris
2 days ago
$begingroup$
This is really helpful, thank you. It seems to be the visualization of steven gregory answer right?
$endgroup$
– user1938107
2 days ago
add a comment |
$begingroup$
Sometimes a figure is worth a 1000 words:
In three dimensions:
$endgroup$
Sometimes a figure is worth a 1000 words:
In three dimensions:
edited Apr 28 at 23:12
answered Apr 28 at 21:57
David G. StorkDavid G. Stork
12.4k41836
12.4k41836
2
$begingroup$
The picture is nice, but it doesn't seem to answer the question. Does it?
$endgroup$
– Taladris
2 days ago
$begingroup$
This is really helpful, thank you. It seems to be the visualization of steven gregory answer right?
$endgroup$
– user1938107
2 days ago
add a comment |
2
$begingroup$
The picture is nice, but it doesn't seem to answer the question. Does it?
$endgroup$
– Taladris
2 days ago
$begingroup$
This is really helpful, thank you. It seems to be the visualization of steven gregory answer right?
$endgroup$
– user1938107
2 days ago
2
2
$begingroup$
The picture is nice, but it doesn't seem to answer the question. Does it?
$endgroup$
– Taladris
2 days ago
$begingroup$
The picture is nice, but it doesn't seem to answer the question. Does it?
$endgroup$
– Taladris
2 days ago
$begingroup$
This is really helpful, thank you. It seems to be the visualization of steven gregory answer right?
$endgroup$
– user1938107
2 days ago
$begingroup$
This is really helpful, thank you. It seems to be the visualization of steven gregory answer right?
$endgroup$
– user1938107
2 days ago
add a comment |
$begingroup$
Let $ell$ be the distance between $p_1$ and $p_2$, and let $p_3$ be the point where the two line segments will meet.
The three points $p_1, p_2, p_3$ form a triangle whose side lengths we know: $a, b, ell$.
We can find out where $p_3$ is by measuring properties of this triangle. Draw a perpendicular altitude from $p_3$ down to the side of the triangle between $p_1$ and $p_2$. Call the intersection point $p_4$.
If we knew the length $h$ of this altitude, we would know where to put $p_3$. First, we could find out where $p_4$ is. By the Pythagorean theorem, the distance between $p_1$ and $p_4$ is $sqrta^2 - h^2$. So
$$p_4 = p_1 + fracsqrta^2-h^2ell (p_2 - p_1)$$Next, we would use $p_4$ to find out where to put $p_3$. We start from $p_4$ and travel a distance $h$ in a direction perpendicular to the $p_1$ $p_2$ base of the triangle.
In two dimensions, we have two choices of perpendicular direction. In three dimensions, we actually have an infinite number of perpendicular directions[*], so you'll have to pick one. Pick a unit vector $widehatu$ in a perpendicular direction.
Then $p_3 = p_4 + hcdot widehatu$, which gives you the answer you want.
But how do we find $h$? We can find $h$ if we know the area of the triangle. Heron's formula lets you calculate the area of the triangle when you know the length of all the sides. $A = sqrts(s-a)(s-b)(s-ell)$, where $s$ is half the perimeter $s = (a+b+ell)/2$. Once you have the area, you can calculate the height of the altitude: $A = frac12textbasetimestextheight$, so $h = 2A/ell$.
[*] In 3D, you have an infinite number of perpendicular directions. Imagine $p_1=langle 0,0rangle$ and $p_2 = langle 1,0rangle$, and $a$ and $b$ are some numbers. There's a satisfactory point $p_3$ in the x-y plane. But if you spin $p_3$ around the $x$-axis, you find an infinite number of other satisfactory points too.
$endgroup$
add a comment |
$begingroup$
Let $ell$ be the distance between $p_1$ and $p_2$, and let $p_3$ be the point where the two line segments will meet.
The three points $p_1, p_2, p_3$ form a triangle whose side lengths we know: $a, b, ell$.
We can find out where $p_3$ is by measuring properties of this triangle. Draw a perpendicular altitude from $p_3$ down to the side of the triangle between $p_1$ and $p_2$. Call the intersection point $p_4$.
If we knew the length $h$ of this altitude, we would know where to put $p_3$. First, we could find out where $p_4$ is. By the Pythagorean theorem, the distance between $p_1$ and $p_4$ is $sqrta^2 - h^2$. So
$$p_4 = p_1 + fracsqrta^2-h^2ell (p_2 - p_1)$$Next, we would use $p_4$ to find out where to put $p_3$. We start from $p_4$ and travel a distance $h$ in a direction perpendicular to the $p_1$ $p_2$ base of the triangle.
In two dimensions, we have two choices of perpendicular direction. In three dimensions, we actually have an infinite number of perpendicular directions[*], so you'll have to pick one. Pick a unit vector $widehatu$ in a perpendicular direction.
Then $p_3 = p_4 + hcdot widehatu$, which gives you the answer you want.
But how do we find $h$? We can find $h$ if we know the area of the triangle. Heron's formula lets you calculate the area of the triangle when you know the length of all the sides. $A = sqrts(s-a)(s-b)(s-ell)$, where $s$ is half the perimeter $s = (a+b+ell)/2$. Once you have the area, you can calculate the height of the altitude: $A = frac12textbasetimestextheight$, so $h = 2A/ell$.
[*] In 3D, you have an infinite number of perpendicular directions. Imagine $p_1=langle 0,0rangle$ and $p_2 = langle 1,0rangle$, and $a$ and $b$ are some numbers. There's a satisfactory point $p_3$ in the x-y plane. But if you spin $p_3$ around the $x$-axis, you find an infinite number of other satisfactory points too.
$endgroup$
add a comment |
$begingroup$
Let $ell$ be the distance between $p_1$ and $p_2$, and let $p_3$ be the point where the two line segments will meet.
The three points $p_1, p_2, p_3$ form a triangle whose side lengths we know: $a, b, ell$.
We can find out where $p_3$ is by measuring properties of this triangle. Draw a perpendicular altitude from $p_3$ down to the side of the triangle between $p_1$ and $p_2$. Call the intersection point $p_4$.
If we knew the length $h$ of this altitude, we would know where to put $p_3$. First, we could find out where $p_4$ is. By the Pythagorean theorem, the distance between $p_1$ and $p_4$ is $sqrta^2 - h^2$. So
$$p_4 = p_1 + fracsqrta^2-h^2ell (p_2 - p_1)$$Next, we would use $p_4$ to find out where to put $p_3$. We start from $p_4$ and travel a distance $h$ in a direction perpendicular to the $p_1$ $p_2$ base of the triangle.
In two dimensions, we have two choices of perpendicular direction. In three dimensions, we actually have an infinite number of perpendicular directions[*], so you'll have to pick one. Pick a unit vector $widehatu$ in a perpendicular direction.
Then $p_3 = p_4 + hcdot widehatu$, which gives you the answer you want.
But how do we find $h$? We can find $h$ if we know the area of the triangle. Heron's formula lets you calculate the area of the triangle when you know the length of all the sides. $A = sqrts(s-a)(s-b)(s-ell)$, where $s$ is half the perimeter $s = (a+b+ell)/2$. Once you have the area, you can calculate the height of the altitude: $A = frac12textbasetimestextheight$, so $h = 2A/ell$.
[*] In 3D, you have an infinite number of perpendicular directions. Imagine $p_1=langle 0,0rangle$ and $p_2 = langle 1,0rangle$, and $a$ and $b$ are some numbers. There's a satisfactory point $p_3$ in the x-y plane. But if you spin $p_3$ around the $x$-axis, you find an infinite number of other satisfactory points too.
$endgroup$
Let $ell$ be the distance between $p_1$ and $p_2$, and let $p_3$ be the point where the two line segments will meet.
The three points $p_1, p_2, p_3$ form a triangle whose side lengths we know: $a, b, ell$.
We can find out where $p_3$ is by measuring properties of this triangle. Draw a perpendicular altitude from $p_3$ down to the side of the triangle between $p_1$ and $p_2$. Call the intersection point $p_4$.
If we knew the length $h$ of this altitude, we would know where to put $p_3$. First, we could find out where $p_4$ is. By the Pythagorean theorem, the distance between $p_1$ and $p_4$ is $sqrta^2 - h^2$. So
$$p_4 = p_1 + fracsqrta^2-h^2ell (p_2 - p_1)$$Next, we would use $p_4$ to find out where to put $p_3$. We start from $p_4$ and travel a distance $h$ in a direction perpendicular to the $p_1$ $p_2$ base of the triangle.
In two dimensions, we have two choices of perpendicular direction. In three dimensions, we actually have an infinite number of perpendicular directions[*], so you'll have to pick one. Pick a unit vector $widehatu$ in a perpendicular direction.
Then $p_3 = p_4 + hcdot widehatu$, which gives you the answer you want.
But how do we find $h$? We can find $h$ if we know the area of the triangle. Heron's formula lets you calculate the area of the triangle when you know the length of all the sides. $A = sqrts(s-a)(s-b)(s-ell)$, where $s$ is half the perimeter $s = (a+b+ell)/2$. Once you have the area, you can calculate the height of the altitude: $A = frac12textbasetimestextheight$, so $h = 2A/ell$.
[*] In 3D, you have an infinite number of perpendicular directions. Imagine $p_1=langle 0,0rangle$ and $p_2 = langle 1,0rangle$, and $a$ and $b$ are some numbers. There's a satisfactory point $p_3$ in the x-y plane. But if you spin $p_3$ around the $x$-axis, you find an infinite number of other satisfactory points too.
answered Apr 28 at 22:00
user326210user326210
9,522927
9,522927
add a comment |
add a comment |
$begingroup$
As I mentioned in my comment, there is no solution unless $a^2+b^2=lvert P_1P_2rvert^2$. Let $Q$ be the point $(x_3,y_3)$, $R$ the foot of the perpendicular from $Q$ to $overlineP_1P_2$, and $c = lvert P_1P_2rvert$. $triangleP_1QP_2$, $triangleP_1RQ$ and $triangleQRP_2$ are all similar, therefore $lvert P_1Rrvert = a^2/c$, which means that $$R = left(1-a^2over c^2right)P_1+a^2over c^2 P_2.$$ Similarly, $lvert QRrvert = (ab)/c$ and a unit vector perpendicular to $overlineP_1P_2$ is $frac1c(y_1-y_2,x_2-x_1)$, therefore the two solutions are $$Q=Rpmabover c^2(y_1-y_2,x_2-x_1).$$
In three dimensions, there is an infinite number of solutions that lie on a circle of radius $(ab)/c$ centered at $R$ and in a plane perpendicular to $overlineP_1P_2$.
$endgroup$
add a comment |
$begingroup$
As I mentioned in my comment, there is no solution unless $a^2+b^2=lvert P_1P_2rvert^2$. Let $Q$ be the point $(x_3,y_3)$, $R$ the foot of the perpendicular from $Q$ to $overlineP_1P_2$, and $c = lvert P_1P_2rvert$. $triangleP_1QP_2$, $triangleP_1RQ$ and $triangleQRP_2$ are all similar, therefore $lvert P_1Rrvert = a^2/c$, which means that $$R = left(1-a^2over c^2right)P_1+a^2over c^2 P_2.$$ Similarly, $lvert QRrvert = (ab)/c$ and a unit vector perpendicular to $overlineP_1P_2$ is $frac1c(y_1-y_2,x_2-x_1)$, therefore the two solutions are $$Q=Rpmabover c^2(y_1-y_2,x_2-x_1).$$
In three dimensions, there is an infinite number of solutions that lie on a circle of radius $(ab)/c$ centered at $R$ and in a plane perpendicular to $overlineP_1P_2$.
$endgroup$
add a comment |
$begingroup$
As I mentioned in my comment, there is no solution unless $a^2+b^2=lvert P_1P_2rvert^2$. Let $Q$ be the point $(x_3,y_3)$, $R$ the foot of the perpendicular from $Q$ to $overlineP_1P_2$, and $c = lvert P_1P_2rvert$. $triangleP_1QP_2$, $triangleP_1RQ$ and $triangleQRP_2$ are all similar, therefore $lvert P_1Rrvert = a^2/c$, which means that $$R = left(1-a^2over c^2right)P_1+a^2over c^2 P_2.$$ Similarly, $lvert QRrvert = (ab)/c$ and a unit vector perpendicular to $overlineP_1P_2$ is $frac1c(y_1-y_2,x_2-x_1)$, therefore the two solutions are $$Q=Rpmabover c^2(y_1-y_2,x_2-x_1).$$
In three dimensions, there is an infinite number of solutions that lie on a circle of radius $(ab)/c$ centered at $R$ and in a plane perpendicular to $overlineP_1P_2$.
$endgroup$
As I mentioned in my comment, there is no solution unless $a^2+b^2=lvert P_1P_2rvert^2$. Let $Q$ be the point $(x_3,y_3)$, $R$ the foot of the perpendicular from $Q$ to $overlineP_1P_2$, and $c = lvert P_1P_2rvert$. $triangleP_1QP_2$, $triangleP_1RQ$ and $triangleQRP_2$ are all similar, therefore $lvert P_1Rrvert = a^2/c$, which means that $$R = left(1-a^2over c^2right)P_1+a^2over c^2 P_2.$$ Similarly, $lvert QRrvert = (ab)/c$ and a unit vector perpendicular to $overlineP_1P_2$ is $frac1c(y_1-y_2,x_2-x_1)$, therefore the two solutions are $$Q=Rpmabover c^2(y_1-y_2,x_2-x_1).$$
In three dimensions, there is an infinite number of solutions that lie on a circle of radius $(ab)/c$ centered at $R$ and in a plane perpendicular to $overlineP_1P_2$.
answered 2 days ago
amdamd
32.6k21054
32.6k21054
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%2f3206136%2ffind-the-coordinate-of-two-line-segments-that-are-perpendicular%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$
If the lengths $a$ and $b$ are fixed, then you must also have $lVert p_1-p_2rVert^2=a^2+b^2$ for there to be any solution at all. It this condition is meth, then there can be up to four solutions, two if $p_1$ must be an endpoint of $a$ and $p_2$ must be an endpoint of $b$.
$endgroup$
– amd
Apr 28 at 21:52
$begingroup$
@amd yes p1 and p2 are the endpoints of a and b. I need their mutual endpoint
$endgroup$
– user1938107
Apr 28 at 22:28