Archived

This topic is now archived and is closed to further replies.

redcliffe

Polar 3D to cartesian

Recommended Posts

How can I convert a vector in terms of 3 angles and a magnitude to a vector in terms of cartesian x, y, z? I''ve seen that x = magnitude * cos(angX) and z = magnitude * sin(angZ), but am unsure about the Y axis one. Thanks, David

Share this post


Link to post
Share on other sites
http://www.math.montana.edu/frankw/ccp/multiworld/multipleIVP/spherical/body.htm


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
quote:
Original post by Sneftel
http://www.math.montana.edu/frankw/ccp/multiworld/multipleIVP/spherical/body.htm


How appropriate. You fight like a cow.


Ah great. Just what I wanted. Thanks,

David

Share this post


Link to post
Share on other sites
quote:
Original post by MelvinElvin
polar 3d does not work with 3 angles and a magnitude. Spherical uses 2 angles and a radius. not really sure which one you''re looking for.


Yep. I was sorta confused after a night of late coding. That link posted before has fixed my problem. Thanks,

David

Share this post


Link to post
Share on other sites