FIND POINT OF INTERSECTION BETWEEN A CUBE AND A LINE IN 3D

4 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by