How do you calculate the weighting of a point inside of an equilateral triangle compared to its vertices?How...
How do we objectively assess if a dialogue sounds unnatural or cringy?
Why does this boat have a landing pad? (SpaceX's GO Searcher) Any plans for propulsive capsule landings?
Should I apply for my boss's promotion?
Either of .... (Plural/Singular)
Who is the hero of my every day?
Cross out words with overlapping to nearby words
Boss Telling direct supervisor I snitched
Can a space-faring robot still function over a billion years?
Is it a Cyclops number? "Nobody" knows!
“I had a flat in the centre of town, but I didn’t like living there, so …”
-1 to the power of a irrational number
3.5% Interest Student Loan or use all of my savings on Tuition?
If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?
Insult for someone who "doesn't know anything"
School performs periodic password audits. Is my password compromised?
Does the US political system, in principle, allow for a no-party system?
Does an unused member variable take up memory?
Is there a logarithm base for which the logarithm becomes an identity function?
Is it appropriate to ask a former professor to order a book for me through an inter-library loan?
The (Easy) Road to Code
Short story about cities being connected by a conveyor belt
Why is there an extra space when I type "ls" on the Desktop?
Do black holes violate the conservation of mass?
Vector-transposing function
How do you calculate the weighting of a point inside of an equilateral triangle compared to its vertices?
How to find the inverse position inside a triangleHow to find the other vertices of an equilateral triangle given one vertex and centroidIn an equilateral triangle what is sum of distance from vertices to a point inside the triangle?Is it possible to find the vertices of an equilateral triangle given its center point?Maximize the distance to vertices in an equilateral triangleFinding the length of a side of an equilateral trianglePoint inside a triangle that is the same distance from each vertexhow to distribute the weight of a point among the vertices of a square in which it lies?Finding the largest equilateral triangle inside a given trianglePyramid Triangles
$begingroup$
In an equilateral triangle that contains a point, how do you calculate 3 weights that sum to 100% and indicate how much influence each vertex has on the point.
When the point is in the center all the weights are 33%:
And if it's on one edge they should be split between the vertices that share that edge:
This is similar to how an HSL color wheel works:
geometry triangle
New contributor
$endgroup$
add a comment |
$begingroup$
In an equilateral triangle that contains a point, how do you calculate 3 weights that sum to 100% and indicate how much influence each vertex has on the point.
When the point is in the center all the weights are 33%:
And if it's on one edge they should be split between the vertices that share that edge:
This is similar to how an HSL color wheel works:
geometry triangle
New contributor
$endgroup$
$begingroup$
en.wikipedia.org/wiki/Barycentric_coordinate_system
$endgroup$
– Rahul
Mar 6 at 3:52
add a comment |
$begingroup$
In an equilateral triangle that contains a point, how do you calculate 3 weights that sum to 100% and indicate how much influence each vertex has on the point.
When the point is in the center all the weights are 33%:
And if it's on one edge they should be split between the vertices that share that edge:
This is similar to how an HSL color wheel works:
geometry triangle
New contributor
$endgroup$
In an equilateral triangle that contains a point, how do you calculate 3 weights that sum to 100% and indicate how much influence each vertex has on the point.
When the point is in the center all the weights are 33%:
And if it's on one edge they should be split between the vertices that share that edge:
This is similar to how an HSL color wheel works:
geometry triangle
geometry triangle
New contributor
New contributor
New contributor
asked Mar 6 at 2:44
DShookDShook
1114
1114
New contributor
New contributor
$begingroup$
en.wikipedia.org/wiki/Barycentric_coordinate_system
$endgroup$
– Rahul
Mar 6 at 3:52
add a comment |
$begingroup$
en.wikipedia.org/wiki/Barycentric_coordinate_system
$endgroup$
– Rahul
Mar 6 at 3:52
$begingroup$
en.wikipedia.org/wiki/Barycentric_coordinate_system
$endgroup$
– Rahul
Mar 6 at 3:52
$begingroup$
en.wikipedia.org/wiki/Barycentric_coordinate_system
$endgroup$
– Rahul
Mar 6 at 3:52
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Let's think of three different points of the plane, $P$, $Q$ and $R$, not all co-linear, each with some coordinate vector in $mathbb{R}^2$. If we only deal with two at first, $P$ and $Q$, we can write a one parameter interpolation as:
$$
X = P(1-t)+Qt,
$$
for $tin[0,1]$. If you like, $100t$ gives you the percentage of $Q$'s weight, and $100(1-t)$ is the percentage of $P$'s weight. Also, if you pick any point $Xinmathbb{R}^2$ which lies in the segment between $P$ and $Q$, there is only one value of $t$ such that $X = P(1-t)+Qt$, because the equation is linear.
Now, for the third point $R$. Since $P(1-t)+Qt$ already describes all the points in the $PQ$ segment, we interpolate this expression again with the point $R$, obtaining
$$
X=[P(1-t)+Qt](1-s)+Rs.
$$
for $sin[0,1]$. Expanding, we get
$$
X=P(1-t)(1-s)+Qt(1-s)+Rs.
$$
It looks worse than before, but it is the same trick. Any point contained in the triangle $PQR$ can be uniquely identified with two values $tin[0,1]$ and $sin[0,1]$. And again, $100(1-t)(1-s)$ is the percentage weight of $P$, $100t(1-s)$ that of $Q$, and $100s$ that of $R$.
I hope this helps!
$endgroup$
$begingroup$
Not following here unfortunately. Did you rename A,B,C in the diagrams to P,Q,R? What is X? Where do the coordinates of the point fit into the equation?
$endgroup$
– DShook
Mar 6 at 3:23
$begingroup$
Indeed,$P$, $Q$ and $R$ are your $A$, $B$ and $C$. $X$ is the point in the triangle which you want to express as a combination of the vertex points. The coordinates of the points come into it because all the equations I wrote are vector equations. Writing $X=P(1-t)+Qt$ is shorthand for $X_1=P_1(1-t)+Q_1 t$ and $X_2=P_2(1-t)+Q_2 t$, where $X$ is the vector with coordinates $(X_1, X_2)$, and likewise for $P$, $Q$ and $R$.
$endgroup$
– R_B
Mar 6 at 3:29
add a comment |
$begingroup$
I ended up using another method to solve this. In the diagram below to calculate the weight for a point, find the distance from the control point to the line opposite it and then divide by the triangle's height.
For the weight of A:
weightOfA = lengthOfx / triangleHeight
New contributor
$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
});
}
});
DShook is a new contributor. Be nice, and check out our Code of Conduct.
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%2f3137017%2fhow-do-you-calculate-the-weighting-of-a-point-inside-of-an-equilateral-triangle%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$
Let's think of three different points of the plane, $P$, $Q$ and $R$, not all co-linear, each with some coordinate vector in $mathbb{R}^2$. If we only deal with two at first, $P$ and $Q$, we can write a one parameter interpolation as:
$$
X = P(1-t)+Qt,
$$
for $tin[0,1]$. If you like, $100t$ gives you the percentage of $Q$'s weight, and $100(1-t)$ is the percentage of $P$'s weight. Also, if you pick any point $Xinmathbb{R}^2$ which lies in the segment between $P$ and $Q$, there is only one value of $t$ such that $X = P(1-t)+Qt$, because the equation is linear.
Now, for the third point $R$. Since $P(1-t)+Qt$ already describes all the points in the $PQ$ segment, we interpolate this expression again with the point $R$, obtaining
$$
X=[P(1-t)+Qt](1-s)+Rs.
$$
for $sin[0,1]$. Expanding, we get
$$
X=P(1-t)(1-s)+Qt(1-s)+Rs.
$$
It looks worse than before, but it is the same trick. Any point contained in the triangle $PQR$ can be uniquely identified with two values $tin[0,1]$ and $sin[0,1]$. And again, $100(1-t)(1-s)$ is the percentage weight of $P$, $100t(1-s)$ that of $Q$, and $100s$ that of $R$.
I hope this helps!
$endgroup$
$begingroup$
Not following here unfortunately. Did you rename A,B,C in the diagrams to P,Q,R? What is X? Where do the coordinates of the point fit into the equation?
$endgroup$
– DShook
Mar 6 at 3:23
$begingroup$
Indeed,$P$, $Q$ and $R$ are your $A$, $B$ and $C$. $X$ is the point in the triangle which you want to express as a combination of the vertex points. The coordinates of the points come into it because all the equations I wrote are vector equations. Writing $X=P(1-t)+Qt$ is shorthand for $X_1=P_1(1-t)+Q_1 t$ and $X_2=P_2(1-t)+Q_2 t$, where $X$ is the vector with coordinates $(X_1, X_2)$, and likewise for $P$, $Q$ and $R$.
$endgroup$
– R_B
Mar 6 at 3:29
add a comment |
$begingroup$
Let's think of three different points of the plane, $P$, $Q$ and $R$, not all co-linear, each with some coordinate vector in $mathbb{R}^2$. If we only deal with two at first, $P$ and $Q$, we can write a one parameter interpolation as:
$$
X = P(1-t)+Qt,
$$
for $tin[0,1]$. If you like, $100t$ gives you the percentage of $Q$'s weight, and $100(1-t)$ is the percentage of $P$'s weight. Also, if you pick any point $Xinmathbb{R}^2$ which lies in the segment between $P$ and $Q$, there is only one value of $t$ such that $X = P(1-t)+Qt$, because the equation is linear.
Now, for the third point $R$. Since $P(1-t)+Qt$ already describes all the points in the $PQ$ segment, we interpolate this expression again with the point $R$, obtaining
$$
X=[P(1-t)+Qt](1-s)+Rs.
$$
for $sin[0,1]$. Expanding, we get
$$
X=P(1-t)(1-s)+Qt(1-s)+Rs.
$$
It looks worse than before, but it is the same trick. Any point contained in the triangle $PQR$ can be uniquely identified with two values $tin[0,1]$ and $sin[0,1]$. And again, $100(1-t)(1-s)$ is the percentage weight of $P$, $100t(1-s)$ that of $Q$, and $100s$ that of $R$.
I hope this helps!
$endgroup$
$begingroup$
Not following here unfortunately. Did you rename A,B,C in the diagrams to P,Q,R? What is X? Where do the coordinates of the point fit into the equation?
$endgroup$
– DShook
Mar 6 at 3:23
$begingroup$
Indeed,$P$, $Q$ and $R$ are your $A$, $B$ and $C$. $X$ is the point in the triangle which you want to express as a combination of the vertex points. The coordinates of the points come into it because all the equations I wrote are vector equations. Writing $X=P(1-t)+Qt$ is shorthand for $X_1=P_1(1-t)+Q_1 t$ and $X_2=P_2(1-t)+Q_2 t$, where $X$ is the vector with coordinates $(X_1, X_2)$, and likewise for $P$, $Q$ and $R$.
$endgroup$
– R_B
Mar 6 at 3:29
add a comment |
$begingroup$
Let's think of three different points of the plane, $P$, $Q$ and $R$, not all co-linear, each with some coordinate vector in $mathbb{R}^2$. If we only deal with two at first, $P$ and $Q$, we can write a one parameter interpolation as:
$$
X = P(1-t)+Qt,
$$
for $tin[0,1]$. If you like, $100t$ gives you the percentage of $Q$'s weight, and $100(1-t)$ is the percentage of $P$'s weight. Also, if you pick any point $Xinmathbb{R}^2$ which lies in the segment between $P$ and $Q$, there is only one value of $t$ such that $X = P(1-t)+Qt$, because the equation is linear.
Now, for the third point $R$. Since $P(1-t)+Qt$ already describes all the points in the $PQ$ segment, we interpolate this expression again with the point $R$, obtaining
$$
X=[P(1-t)+Qt](1-s)+Rs.
$$
for $sin[0,1]$. Expanding, we get
$$
X=P(1-t)(1-s)+Qt(1-s)+Rs.
$$
It looks worse than before, but it is the same trick. Any point contained in the triangle $PQR$ can be uniquely identified with two values $tin[0,1]$ and $sin[0,1]$. And again, $100(1-t)(1-s)$ is the percentage weight of $P$, $100t(1-s)$ that of $Q$, and $100s$ that of $R$.
I hope this helps!
$endgroup$
Let's think of three different points of the plane, $P$, $Q$ and $R$, not all co-linear, each with some coordinate vector in $mathbb{R}^2$. If we only deal with two at first, $P$ and $Q$, we can write a one parameter interpolation as:
$$
X = P(1-t)+Qt,
$$
for $tin[0,1]$. If you like, $100t$ gives you the percentage of $Q$'s weight, and $100(1-t)$ is the percentage of $P$'s weight. Also, if you pick any point $Xinmathbb{R}^2$ which lies in the segment between $P$ and $Q$, there is only one value of $t$ such that $X = P(1-t)+Qt$, because the equation is linear.
Now, for the third point $R$. Since $P(1-t)+Qt$ already describes all the points in the $PQ$ segment, we interpolate this expression again with the point $R$, obtaining
$$
X=[P(1-t)+Qt](1-s)+Rs.
$$
for $sin[0,1]$. Expanding, we get
$$
X=P(1-t)(1-s)+Qt(1-s)+Rs.
$$
It looks worse than before, but it is the same trick. Any point contained in the triangle $PQR$ can be uniquely identified with two values $tin[0,1]$ and $sin[0,1]$. And again, $100(1-t)(1-s)$ is the percentage weight of $P$, $100t(1-s)$ that of $Q$, and $100s$ that of $R$.
I hope this helps!
answered Mar 6 at 3:03
R_BR_B
563110
563110
$begingroup$
Not following here unfortunately. Did you rename A,B,C in the diagrams to P,Q,R? What is X? Where do the coordinates of the point fit into the equation?
$endgroup$
– DShook
Mar 6 at 3:23
$begingroup$
Indeed,$P$, $Q$ and $R$ are your $A$, $B$ and $C$. $X$ is the point in the triangle which you want to express as a combination of the vertex points. The coordinates of the points come into it because all the equations I wrote are vector equations. Writing $X=P(1-t)+Qt$ is shorthand for $X_1=P_1(1-t)+Q_1 t$ and $X_2=P_2(1-t)+Q_2 t$, where $X$ is the vector with coordinates $(X_1, X_2)$, and likewise for $P$, $Q$ and $R$.
$endgroup$
– R_B
Mar 6 at 3:29
add a comment |
$begingroup$
Not following here unfortunately. Did you rename A,B,C in the diagrams to P,Q,R? What is X? Where do the coordinates of the point fit into the equation?
$endgroup$
– DShook
Mar 6 at 3:23
$begingroup$
Indeed,$P$, $Q$ and $R$ are your $A$, $B$ and $C$. $X$ is the point in the triangle which you want to express as a combination of the vertex points. The coordinates of the points come into it because all the equations I wrote are vector equations. Writing $X=P(1-t)+Qt$ is shorthand for $X_1=P_1(1-t)+Q_1 t$ and $X_2=P_2(1-t)+Q_2 t$, where $X$ is the vector with coordinates $(X_1, X_2)$, and likewise for $P$, $Q$ and $R$.
$endgroup$
– R_B
Mar 6 at 3:29
$begingroup$
Not following here unfortunately. Did you rename A,B,C in the diagrams to P,Q,R? What is X? Where do the coordinates of the point fit into the equation?
$endgroup$
– DShook
Mar 6 at 3:23
$begingroup$
Not following here unfortunately. Did you rename A,B,C in the diagrams to P,Q,R? What is X? Where do the coordinates of the point fit into the equation?
$endgroup$
– DShook
Mar 6 at 3:23
$begingroup$
Indeed,$P$, $Q$ and $R$ are your $A$, $B$ and $C$. $X$ is the point in the triangle which you want to express as a combination of the vertex points. The coordinates of the points come into it because all the equations I wrote are vector equations. Writing $X=P(1-t)+Qt$ is shorthand for $X_1=P_1(1-t)+Q_1 t$ and $X_2=P_2(1-t)+Q_2 t$, where $X$ is the vector with coordinates $(X_1, X_2)$, and likewise for $P$, $Q$ and $R$.
$endgroup$
– R_B
Mar 6 at 3:29
$begingroup$
Indeed,$P$, $Q$ and $R$ are your $A$, $B$ and $C$. $X$ is the point in the triangle which you want to express as a combination of the vertex points. The coordinates of the points come into it because all the equations I wrote are vector equations. Writing $X=P(1-t)+Qt$ is shorthand for $X_1=P_1(1-t)+Q_1 t$ and $X_2=P_2(1-t)+Q_2 t$, where $X$ is the vector with coordinates $(X_1, X_2)$, and likewise for $P$, $Q$ and $R$.
$endgroup$
– R_B
Mar 6 at 3:29
add a comment |
$begingroup$
I ended up using another method to solve this. In the diagram below to calculate the weight for a point, find the distance from the control point to the line opposite it and then divide by the triangle's height.
For the weight of A:
weightOfA = lengthOfx / triangleHeight
New contributor
$endgroup$
add a comment |
$begingroup$
I ended up using another method to solve this. In the diagram below to calculate the weight for a point, find the distance from the control point to the line opposite it and then divide by the triangle's height.
For the weight of A:
weightOfA = lengthOfx / triangleHeight
New contributor
$endgroup$
add a comment |
$begingroup$
I ended up using another method to solve this. In the diagram below to calculate the weight for a point, find the distance from the control point to the line opposite it and then divide by the triangle's height.
For the weight of A:
weightOfA = lengthOfx / triangleHeight
New contributor
$endgroup$
I ended up using another method to solve this. In the diagram below to calculate the weight for a point, find the distance from the control point to the line opposite it and then divide by the triangle's height.
For the weight of A:
weightOfA = lengthOfx / triangleHeight
New contributor
New contributor
answered yesterday
DShookDShook
1114
1114
New contributor
New contributor
add a comment |
add a comment |
DShook is a new contributor. Be nice, and check out our Code of Conduct.
DShook is a new contributor. Be nice, and check out our Code of Conduct.
DShook is a new contributor. Be nice, and check out our Code of Conduct.
DShook is a new contributor. Be nice, and check out our Code of Conduct.
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%2f3137017%2fhow-do-you-calculate-the-weighting-of-a-point-inside-of-an-equilateral-triangle%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$
en.wikipedia.org/wiki/Barycentric_coordinate_system
$endgroup$
– Rahul
Mar 6 at 3:52