corners of rectangle by center point
14 views (last 30 days)
Show older comments
i want to find corners ABCD of rectangular surface by center point and length and width is given in 3D.
center point = [-9.9366,1.6890,1.3800]
for ease attaching the picture
DGM on 18 Jan 2022
Edited: DGM on 18 Jan 2022
You mean basic addition and subtraction?
c = [-9.9366 1.6890 1.3800];
w = [0 1.7 0.3];
v = c + w/2.*[0 -1 -1; 0 1 -1; 0 1 1; 0 -1 1]
More Answers (1)
Max Heimann on 18 Jan 2022
Do you want the corners of the 2D projection of a rotated plane? In that case you could simply calculate the 3D position of each vertice and discard the 3rd dimension. This requires you to know the rotation of the plane in your 3D space. If you know that your problem is solvable with the builtin sin/cos/tan functions.
Find more on Elementary Polygons in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!