Jump to content
  • Advertisement

Archived

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

redcliffe

Polar 3D to cartesian

This topic is 5532 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
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.

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!