I have the corner coordinates for a rectangle in 3d space how do i find the coordinates for the center of the rectangle?
12 ビュー (過去 30 日間)
古いコメントを表示
I have [x1,y1,z1],[x2,y2,z2],[x3,y3,z3],[x4,y4,z4] each representing a corner.
0 件のコメント
採用された回答
Nick
2018 年 11 月 8 日
The center of a 3D rectangle is simply the mean of it's corners so a simple solution would be:
% each row is a coordinate, take the mean of the rows
mean([x1 y1 z1; x2 y2 z2; x3 y3 z3; x4 y4 z4],1)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!