Plotting a hoop in 3D Space
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I'm trying to draw a Basketball hoop in 3d. I have figured out how to draw a circle in 3d however now I need to use this circle as the centre line of a sweep of circles.
Is this the correct way to go about drawing a hoop?
To plot a the centre of the hoop at (4.225,7.5) at a height of 2.95m I've used:
H=circle3([4.225,7.5,2.95],0.235,1000)
THETA=linspace(0,2*pi,NOP);
RHO=ones(1,NOP)*radius;
[X,Y] = pol2cart(THETA,RHO);
X=X+center(1);
Y=Y+center(2);
Z = center(3)*ones(1,length(X));
H=plot3(X,Y,Z,style);
axis square;
Does anyone know how I could now use this plot to draw a circular profile around it?
I will also need the an equations of these circles, as I am trying to figure out at what point on the hoop a ball would hit it.
Thanks for your time.
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Visual Exploration についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!