FIND POINT OF INTERSECTION BETWEEN A CUBE AND A LINE IN 3D
4 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/450813/image.jpeg)
Hi,
i'm tryng to find a way to compute the coordinates of the point of intersection between a cube and a segment in 3D. I know the dimension of the cube, which is centered in the origin, and the point (x,y,z) which individuates the segment in the space connected to the origin (0,0,0). I was able to solve graphically the problem by using a funcion "plotcube" found in the Matlab forum, but from the graph i'm not able to compute the coordinates of the point of intersection between the cube and the segment. How can i do that?
P.S. the segment which i'm referring to is the red one in the graph, the blue ones are just the axes centered in the origin.
Thank you
Chiara
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!