필터 지우기
필터 지우기

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