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 CenterFile Exchange 中查找有关 Visual Exploration 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by