corners of rectangle by center point
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
2 comentarios
DGM
el 18 de En. de 2022
Editada: DGM
el 18 de En. de 2022
This is an underdefined problem. A rectangle is a 2D object. It's a region in a plane. There are an infinite number of planes that intersect a given point in 3D space. In each of those infinite number of planes, there are an infinite number of possible rectangles with the same geometry which share the same center, but vary by rotation. You need more information than just a center point and width/height in order to define a specific rectangle.
If you want the location of all possible vertices, the locus would be a spherical shell centered at the given point, with a radius equal to half the diagonal of the specified 2D geometry.
Respuesta aceptada
Más respuestas (1)
Max Heimann
el 18 de En. de 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.
3 comentarios
Max Heimann
el 18 de En. de 2022
Are we talking about a 2D problem or a 3D problem?
Can you explain the 3 components of your center point? From your original question it is defined as:
center_point = [-9.9366,1.6890,1.3800]
Are those the X,Y,Z coordinates of the center point?
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!