plot of 3d arc
16 次查看(过去 30 天)
显示 更早的评论
I have three points describing an arc of a circle in three-dimensions.
- center point p0=(x0,y0,z0)
- starting point p1=(x1,y1,z1)
- end point p2=(x2,y2,z2)
I want plot the arc for
- case where I know (x0,y0,z0, x1,y1,z1, x2,y2,z2)
- case where I know (x0,y0,z0, x1,y1,z1, z2) unknown is (x2 y2)
0 个评论
回答(1 个)
Doug Hull
2012-3-27
Once you know representative points on the arc, you can use
plot3(x,y,z)
The tricky bit is generating the vectors x,y,z.
Knowing only the z value for an end point leaves the problem undefined. Actually, even where you know the endpoints entirely, there are two arcs.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!