フィルターのクリア

Plotting a hoop in 3D Space

2 ビュー (過去 30 日間)
Stuart
Stuart 2012 年 3 月 26 日
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 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by