Coordinates of the centroid in a 3D rectangle
I have a 3D rectangle and I have to find the 3D coordinates of its centroid. I tried to take 4 vertices, one let's say the origin $o$ and the three adjacent vertices $a, b, c$.
I computed the distances between the pairs "origin-vertex" using this $sqrt{(o_x - a_x)^2+(o_y - a_y)^2+(o_z - a_z)^2}$ to compute the length, this $sqrt{(o_x - b_x)^2+(o_y - b_y)^2+(o_z - b_z)^2}$ to compute the width and this $sqrt{(o_x - c_x)^2+(o_y - c_y)^2+(o_z - c_z)^2}$ to compute the height.
(I'm doing this because my coordinates are not coplanar, otherwise, I could consider just the $x$ coordinate for the length, ...)
Then I added the coordinates of the origin, respectively $o_x$ to the $frac{length}{2}$, $o_y$ to the $frac{width}{2}$ and $o_z$ to the $frac{height}{2}$.
But what I'm getting is this
image
So what's the problem with my solution?
3d rectangles centroid
|
show 1 more comment
I have a 3D rectangle and I have to find the 3D coordinates of its centroid. I tried to take 4 vertices, one let's say the origin $o$ and the three adjacent vertices $a, b, c$.
I computed the distances between the pairs "origin-vertex" using this $sqrt{(o_x - a_x)^2+(o_y - a_y)^2+(o_z - a_z)^2}$ to compute the length, this $sqrt{(o_x - b_x)^2+(o_y - b_y)^2+(o_z - b_z)^2}$ to compute the width and this $sqrt{(o_x - c_x)^2+(o_y - c_y)^2+(o_z - c_z)^2}$ to compute the height.
(I'm doing this because my coordinates are not coplanar, otherwise, I could consider just the $x$ coordinate for the length, ...)
Then I added the coordinates of the origin, respectively $o_x$ to the $frac{length}{2}$, $o_y$ to the $frac{width}{2}$ and $o_z$ to the $frac{height}{2}$.
But what I'm getting is this
image
So what's the problem with my solution?
3d rectangles centroid
If the points aren’t coplanar, then you don’t have a rectangle.
– amd
Nov 27 '18 at 9:56
What I mean is that for example, the origin is $(37.5, 0.2, -0.3)$ and $a$ is $(39.4, 0.1, -0.1)$
– User
Nov 27 '18 at 10:05
1
If it really is a rectangle, you can just add up all of the vertex coordinates and divide by four or find the intersection of the diagonals, as one might in two dimensions.
– amd
Nov 27 '18 at 10:11
You say you have a rectangle, but your picture shows a box (a.k.a. a cuboid). Are you trying to find the centroid of one of the rectangular faces of the box, or the centroid of the whole box?
– Rahul
Nov 27 '18 at 11:46
User, you probably mean "not axis-aligned", when you wrote "not coplanar".
– Nominal Animal
Nov 28 '18 at 15:46
|
show 1 more comment
I have a 3D rectangle and I have to find the 3D coordinates of its centroid. I tried to take 4 vertices, one let's say the origin $o$ and the three adjacent vertices $a, b, c$.
I computed the distances between the pairs "origin-vertex" using this $sqrt{(o_x - a_x)^2+(o_y - a_y)^2+(o_z - a_z)^2}$ to compute the length, this $sqrt{(o_x - b_x)^2+(o_y - b_y)^2+(o_z - b_z)^2}$ to compute the width and this $sqrt{(o_x - c_x)^2+(o_y - c_y)^2+(o_z - c_z)^2}$ to compute the height.
(I'm doing this because my coordinates are not coplanar, otherwise, I could consider just the $x$ coordinate for the length, ...)
Then I added the coordinates of the origin, respectively $o_x$ to the $frac{length}{2}$, $o_y$ to the $frac{width}{2}$ and $o_z$ to the $frac{height}{2}$.
But what I'm getting is this
image
So what's the problem with my solution?
3d rectangles centroid
I have a 3D rectangle and I have to find the 3D coordinates of its centroid. I tried to take 4 vertices, one let's say the origin $o$ and the three adjacent vertices $a, b, c$.
I computed the distances between the pairs "origin-vertex" using this $sqrt{(o_x - a_x)^2+(o_y - a_y)^2+(o_z - a_z)^2}$ to compute the length, this $sqrt{(o_x - b_x)^2+(o_y - b_y)^2+(o_z - b_z)^2}$ to compute the width and this $sqrt{(o_x - c_x)^2+(o_y - c_y)^2+(o_z - c_z)^2}$ to compute the height.
(I'm doing this because my coordinates are not coplanar, otherwise, I could consider just the $x$ coordinate for the length, ...)
Then I added the coordinates of the origin, respectively $o_x$ to the $frac{length}{2}$, $o_y$ to the $frac{width}{2}$ and $o_z$ to the $frac{height}{2}$.
But what I'm getting is this
image
So what's the problem with my solution?
3d rectangles centroid
3d rectangles centroid
edited Nov 27 '18 at 9:36
asked Nov 27 '18 at 9:25
User
105
105
If the points aren’t coplanar, then you don’t have a rectangle.
– amd
Nov 27 '18 at 9:56
What I mean is that for example, the origin is $(37.5, 0.2, -0.3)$ and $a$ is $(39.4, 0.1, -0.1)$
– User
Nov 27 '18 at 10:05
1
If it really is a rectangle, you can just add up all of the vertex coordinates and divide by four or find the intersection of the diagonals, as one might in two dimensions.
– amd
Nov 27 '18 at 10:11
You say you have a rectangle, but your picture shows a box (a.k.a. a cuboid). Are you trying to find the centroid of one of the rectangular faces of the box, or the centroid of the whole box?
– Rahul
Nov 27 '18 at 11:46
User, you probably mean "not axis-aligned", when you wrote "not coplanar".
– Nominal Animal
Nov 28 '18 at 15:46
|
show 1 more comment
If the points aren’t coplanar, then you don’t have a rectangle.
– amd
Nov 27 '18 at 9:56
What I mean is that for example, the origin is $(37.5, 0.2, -0.3)$ and $a$ is $(39.4, 0.1, -0.1)$
– User
Nov 27 '18 at 10:05
1
If it really is a rectangle, you can just add up all of the vertex coordinates and divide by four or find the intersection of the diagonals, as one might in two dimensions.
– amd
Nov 27 '18 at 10:11
You say you have a rectangle, but your picture shows a box (a.k.a. a cuboid). Are you trying to find the centroid of one of the rectangular faces of the box, or the centroid of the whole box?
– Rahul
Nov 27 '18 at 11:46
User, you probably mean "not axis-aligned", when you wrote "not coplanar".
– Nominal Animal
Nov 28 '18 at 15:46
If the points aren’t coplanar, then you don’t have a rectangle.
– amd
Nov 27 '18 at 9:56
If the points aren’t coplanar, then you don’t have a rectangle.
– amd
Nov 27 '18 at 9:56
What I mean is that for example, the origin is $(37.5, 0.2, -0.3)$ and $a$ is $(39.4, 0.1, -0.1)$
– User
Nov 27 '18 at 10:05
What I mean is that for example, the origin is $(37.5, 0.2, -0.3)$ and $a$ is $(39.4, 0.1, -0.1)$
– User
Nov 27 '18 at 10:05
1
1
If it really is a rectangle, you can just add up all of the vertex coordinates and divide by four or find the intersection of the diagonals, as one might in two dimensions.
– amd
Nov 27 '18 at 10:11
If it really is a rectangle, you can just add up all of the vertex coordinates and divide by four or find the intersection of the diagonals, as one might in two dimensions.
– amd
Nov 27 '18 at 10:11
You say you have a rectangle, but your picture shows a box (a.k.a. a cuboid). Are you trying to find the centroid of one of the rectangular faces of the box, or the centroid of the whole box?
– Rahul
Nov 27 '18 at 11:46
You say you have a rectangle, but your picture shows a box (a.k.a. a cuboid). Are you trying to find the centroid of one of the rectangular faces of the box, or the centroid of the whole box?
– Rahul
Nov 27 '18 at 11:46
User, you probably mean "not axis-aligned", when you wrote "not coplanar".
– Nominal Animal
Nov 28 '18 at 15:46
User, you probably mean "not axis-aligned", when you wrote "not coplanar".
– Nominal Animal
Nov 28 '18 at 15:46
|
show 1 more comment
1 Answer
1
active
oldest
votes
Let's say you know one vertex of the cuboid, $vec{o}$, and three adjacent vertices $vec{a}$, $vec{b}$, and $vec{c}$:
$$bbox{vec{o} = left[begin{matrix} o_x \ o_y \ o_z end{matrix}right]} ,quad
bbox{vec{a} = left[begin{matrix} a_x \ a_y \ a_z end{matrix}right]} ,quad
bbox{vec{b} = left[begin{matrix} b_x \ b_y \ b_z end{matrix}right]} ,quad
bbox{vec{c} = left[begin{matrix} c_x \ c_y \ c_z end{matrix}right]}$$
All edges of the cuboid (where two faces meet) match one of the vectors
$$bbox{vec{e}_a = vec{a} - vec{o}} , quad
bbox{vec{e}_b = vec{b} - vec{o}} , quad
bbox{vec{e}_c = vec{c} - vec{o}}$$
and the eight vertices of the cuboid are at
$$begin{array}{rll}
vec{v}_{000} =& vec{o} & = vec{o} \
vec{v}_{001} =& vec{o} + vec{e}_a & = vec{a} \
vec{v}_{010} =& vec{o} + vec{e}_b & = vec{b} \
vec{v}_{011} =& vec{o} + vec{e}_a + vec{e}_b & = vec{a} + vec{b} - vec{o} \
vec{v}_{100} =& vec{o} + vec{e}_c & = vec{c} \
vec{v}_{101} =& vec{o} + vec{e}_a + vec{e}_c & = vec{a} + vec{c} - vec{o} \
vec{v}_{110} =& vec{o} + vec{e}_b + vec{e}_c & = vec{b} + vec{c} - vec{o} \
vec{v}_{111} =& vec{o} + vec{e}_a + vec{e}_b + vec{e}_c & = vec{a} + vec{b} + vec{c} - 2 vec{o} \
end{array}$$
The centroid for a cuboid (or a parallelepiped; the three edges do not need to be perpendicular to each other) is the sum of the vertex coordinates, divided by eight. If you sum the above, you'll find out that the centroid is at $vec{p}$,
$$bbox{vec{p} = frac{1}{2}left( vec{a} + vec{b} + vec{c} - vec{o} right) = left[begin{matrix}
frac{a_x + b_x + c_x - o_x}{2} \
frac{a_y + b_y + c_y - o_y}{2} \
frac{a_z + b_z + c_z - o_z}{2} \
end{matrix}right]}$$
Thanks for the explanation and the solution!
– User
Nov 29 '18 at 16:07
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%2f3015552%2fcoordinates-of-the-centroid-in-a-3d-rectangle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Let's say you know one vertex of the cuboid, $vec{o}$, and three adjacent vertices $vec{a}$, $vec{b}$, and $vec{c}$:
$$bbox{vec{o} = left[begin{matrix} o_x \ o_y \ o_z end{matrix}right]} ,quad
bbox{vec{a} = left[begin{matrix} a_x \ a_y \ a_z end{matrix}right]} ,quad
bbox{vec{b} = left[begin{matrix} b_x \ b_y \ b_z end{matrix}right]} ,quad
bbox{vec{c} = left[begin{matrix} c_x \ c_y \ c_z end{matrix}right]}$$
All edges of the cuboid (where two faces meet) match one of the vectors
$$bbox{vec{e}_a = vec{a} - vec{o}} , quad
bbox{vec{e}_b = vec{b} - vec{o}} , quad
bbox{vec{e}_c = vec{c} - vec{o}}$$
and the eight vertices of the cuboid are at
$$begin{array}{rll}
vec{v}_{000} =& vec{o} & = vec{o} \
vec{v}_{001} =& vec{o} + vec{e}_a & = vec{a} \
vec{v}_{010} =& vec{o} + vec{e}_b & = vec{b} \
vec{v}_{011} =& vec{o} + vec{e}_a + vec{e}_b & = vec{a} + vec{b} - vec{o} \
vec{v}_{100} =& vec{o} + vec{e}_c & = vec{c} \
vec{v}_{101} =& vec{o} + vec{e}_a + vec{e}_c & = vec{a} + vec{c} - vec{o} \
vec{v}_{110} =& vec{o} + vec{e}_b + vec{e}_c & = vec{b} + vec{c} - vec{o} \
vec{v}_{111} =& vec{o} + vec{e}_a + vec{e}_b + vec{e}_c & = vec{a} + vec{b} + vec{c} - 2 vec{o} \
end{array}$$
The centroid for a cuboid (or a parallelepiped; the three edges do not need to be perpendicular to each other) is the sum of the vertex coordinates, divided by eight. If you sum the above, you'll find out that the centroid is at $vec{p}$,
$$bbox{vec{p} = frac{1}{2}left( vec{a} + vec{b} + vec{c} - vec{o} right) = left[begin{matrix}
frac{a_x + b_x + c_x - o_x}{2} \
frac{a_y + b_y + c_y - o_y}{2} \
frac{a_z + b_z + c_z - o_z}{2} \
end{matrix}right]}$$
Thanks for the explanation and the solution!
– User
Nov 29 '18 at 16:07
add a comment |
Let's say you know one vertex of the cuboid, $vec{o}$, and three adjacent vertices $vec{a}$, $vec{b}$, and $vec{c}$:
$$bbox{vec{o} = left[begin{matrix} o_x \ o_y \ o_z end{matrix}right]} ,quad
bbox{vec{a} = left[begin{matrix} a_x \ a_y \ a_z end{matrix}right]} ,quad
bbox{vec{b} = left[begin{matrix} b_x \ b_y \ b_z end{matrix}right]} ,quad
bbox{vec{c} = left[begin{matrix} c_x \ c_y \ c_z end{matrix}right]}$$
All edges of the cuboid (where two faces meet) match one of the vectors
$$bbox{vec{e}_a = vec{a} - vec{o}} , quad
bbox{vec{e}_b = vec{b} - vec{o}} , quad
bbox{vec{e}_c = vec{c} - vec{o}}$$
and the eight vertices of the cuboid are at
$$begin{array}{rll}
vec{v}_{000} =& vec{o} & = vec{o} \
vec{v}_{001} =& vec{o} + vec{e}_a & = vec{a} \
vec{v}_{010} =& vec{o} + vec{e}_b & = vec{b} \
vec{v}_{011} =& vec{o} + vec{e}_a + vec{e}_b & = vec{a} + vec{b} - vec{o} \
vec{v}_{100} =& vec{o} + vec{e}_c & = vec{c} \
vec{v}_{101} =& vec{o} + vec{e}_a + vec{e}_c & = vec{a} + vec{c} - vec{o} \
vec{v}_{110} =& vec{o} + vec{e}_b + vec{e}_c & = vec{b} + vec{c} - vec{o} \
vec{v}_{111} =& vec{o} + vec{e}_a + vec{e}_b + vec{e}_c & = vec{a} + vec{b} + vec{c} - 2 vec{o} \
end{array}$$
The centroid for a cuboid (or a parallelepiped; the three edges do not need to be perpendicular to each other) is the sum of the vertex coordinates, divided by eight. If you sum the above, you'll find out that the centroid is at $vec{p}$,
$$bbox{vec{p} = frac{1}{2}left( vec{a} + vec{b} + vec{c} - vec{o} right) = left[begin{matrix}
frac{a_x + b_x + c_x - o_x}{2} \
frac{a_y + b_y + c_y - o_y}{2} \
frac{a_z + b_z + c_z - o_z}{2} \
end{matrix}right]}$$
Thanks for the explanation and the solution!
– User
Nov 29 '18 at 16:07
add a comment |
Let's say you know one vertex of the cuboid, $vec{o}$, and three adjacent vertices $vec{a}$, $vec{b}$, and $vec{c}$:
$$bbox{vec{o} = left[begin{matrix} o_x \ o_y \ o_z end{matrix}right]} ,quad
bbox{vec{a} = left[begin{matrix} a_x \ a_y \ a_z end{matrix}right]} ,quad
bbox{vec{b} = left[begin{matrix} b_x \ b_y \ b_z end{matrix}right]} ,quad
bbox{vec{c} = left[begin{matrix} c_x \ c_y \ c_z end{matrix}right]}$$
All edges of the cuboid (where two faces meet) match one of the vectors
$$bbox{vec{e}_a = vec{a} - vec{o}} , quad
bbox{vec{e}_b = vec{b} - vec{o}} , quad
bbox{vec{e}_c = vec{c} - vec{o}}$$
and the eight vertices of the cuboid are at
$$begin{array}{rll}
vec{v}_{000} =& vec{o} & = vec{o} \
vec{v}_{001} =& vec{o} + vec{e}_a & = vec{a} \
vec{v}_{010} =& vec{o} + vec{e}_b & = vec{b} \
vec{v}_{011} =& vec{o} + vec{e}_a + vec{e}_b & = vec{a} + vec{b} - vec{o} \
vec{v}_{100} =& vec{o} + vec{e}_c & = vec{c} \
vec{v}_{101} =& vec{o} + vec{e}_a + vec{e}_c & = vec{a} + vec{c} - vec{o} \
vec{v}_{110} =& vec{o} + vec{e}_b + vec{e}_c & = vec{b} + vec{c} - vec{o} \
vec{v}_{111} =& vec{o} + vec{e}_a + vec{e}_b + vec{e}_c & = vec{a} + vec{b} + vec{c} - 2 vec{o} \
end{array}$$
The centroid for a cuboid (or a parallelepiped; the three edges do not need to be perpendicular to each other) is the sum of the vertex coordinates, divided by eight. If you sum the above, you'll find out that the centroid is at $vec{p}$,
$$bbox{vec{p} = frac{1}{2}left( vec{a} + vec{b} + vec{c} - vec{o} right) = left[begin{matrix}
frac{a_x + b_x + c_x - o_x}{2} \
frac{a_y + b_y + c_y - o_y}{2} \
frac{a_z + b_z + c_z - o_z}{2} \
end{matrix}right]}$$
Let's say you know one vertex of the cuboid, $vec{o}$, and three adjacent vertices $vec{a}$, $vec{b}$, and $vec{c}$:
$$bbox{vec{o} = left[begin{matrix} o_x \ o_y \ o_z end{matrix}right]} ,quad
bbox{vec{a} = left[begin{matrix} a_x \ a_y \ a_z end{matrix}right]} ,quad
bbox{vec{b} = left[begin{matrix} b_x \ b_y \ b_z end{matrix}right]} ,quad
bbox{vec{c} = left[begin{matrix} c_x \ c_y \ c_z end{matrix}right]}$$
All edges of the cuboid (where two faces meet) match one of the vectors
$$bbox{vec{e}_a = vec{a} - vec{o}} , quad
bbox{vec{e}_b = vec{b} - vec{o}} , quad
bbox{vec{e}_c = vec{c} - vec{o}}$$
and the eight vertices of the cuboid are at
$$begin{array}{rll}
vec{v}_{000} =& vec{o} & = vec{o} \
vec{v}_{001} =& vec{o} + vec{e}_a & = vec{a} \
vec{v}_{010} =& vec{o} + vec{e}_b & = vec{b} \
vec{v}_{011} =& vec{o} + vec{e}_a + vec{e}_b & = vec{a} + vec{b} - vec{o} \
vec{v}_{100} =& vec{o} + vec{e}_c & = vec{c} \
vec{v}_{101} =& vec{o} + vec{e}_a + vec{e}_c & = vec{a} + vec{c} - vec{o} \
vec{v}_{110} =& vec{o} + vec{e}_b + vec{e}_c & = vec{b} + vec{c} - vec{o} \
vec{v}_{111} =& vec{o} + vec{e}_a + vec{e}_b + vec{e}_c & = vec{a} + vec{b} + vec{c} - 2 vec{o} \
end{array}$$
The centroid for a cuboid (or a parallelepiped; the three edges do not need to be perpendicular to each other) is the sum of the vertex coordinates, divided by eight. If you sum the above, you'll find out that the centroid is at $vec{p}$,
$$bbox{vec{p} = frac{1}{2}left( vec{a} + vec{b} + vec{c} - vec{o} right) = left[begin{matrix}
frac{a_x + b_x + c_x - o_x}{2} \
frac{a_y + b_y + c_y - o_y}{2} \
frac{a_z + b_z + c_z - o_z}{2} \
end{matrix}right]}$$
answered Nov 28 '18 at 16:16
Nominal Animal
6,7702517
6,7702517
Thanks for the explanation and the solution!
– User
Nov 29 '18 at 16:07
add a comment |
Thanks for the explanation and the solution!
– User
Nov 29 '18 at 16:07
Thanks for the explanation and the solution!
– User
Nov 29 '18 at 16:07
Thanks for the explanation and the solution!
– User
Nov 29 '18 at 16:07
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%2f3015552%2fcoordinates-of-the-centroid-in-a-3d-rectangle%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
If the points aren’t coplanar, then you don’t have a rectangle.
– amd
Nov 27 '18 at 9:56
What I mean is that for example, the origin is $(37.5, 0.2, -0.3)$ and $a$ is $(39.4, 0.1, -0.1)$
– User
Nov 27 '18 at 10:05
1
If it really is a rectangle, you can just add up all of the vertex coordinates and divide by four or find the intersection of the diagonals, as one might in two dimensions.
– amd
Nov 27 '18 at 10:11
You say you have a rectangle, but your picture shows a box (a.k.a. a cuboid). Are you trying to find the centroid of one of the rectangular faces of the box, or the centroid of the whole box?
– Rahul
Nov 27 '18 at 11:46
User, you probably mean "not axis-aligned", when you wrote "not coplanar".
– Nominal Animal
Nov 28 '18 at 15:46