Plotting a hoop in 3D Space
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Visual Exploration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!