Physics Forums

Physics Forums (http://www.physicsforums.com/index.php)
-   Differential Geometry (http://www.physicsforums.com/forumdisplay.php?f=76)
-   -   Parametric equation for 3D circle that's off-axis (http://www.physicsforums.com/showthread.php?t=560812)

rromanowski Dec16-11 12:17 PM

Parametric equation for 3D circle that's off-axis
 
Hi.

I want to know the equation to draw a circle that's a bit tilted. Imagine a 3D circle that's parallel with the Y axis. Now I want to take that circle and have its center cross through the origin still, but I want it to be θ degrees titled from the Y Axis.

I'm using the following equations right now:
x = r * sin(u) * cos(v)
y = r * sin(v)
z = r * cos(u) * cos(v)

where r = radius, u ranges over full circle, v ranges from -pi/2 to pi/2

Thanks,
Ryan

obafgkmrns Dec16-11 01:48 PM

Re: Parametric equation for 3D circle that's off-axis
 
You need to transform your sphere's orientation via multiplication by a direction cosine matrix. Any intro text to mechanics or aero should have a good description. This link also has a decent description: http://www.ece.unb.ca/COBRA/Resource...r%20Angles.pdf


All times are GMT -5. The time now is 04:52 PM.

Powered by vBulletin Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2014 Physics Forums