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

## Recommended Posts

I am currently in an online class for game programming. On the assignment I am working on, it requires for us to make a simple 3D polar class. Our assignment is: Create a 3D Polar class that represents the points on the plain as polar coordinates (radius and angle). Create an overloaded +operator for addition of the Polar quantities. "Adding" two points on the plain can be accomplished by adding their X, Y, and Z coordinates. Convert the sets of polar coordinates to rectangular coordinates, add them, then convert the resulting rectangular representation back to polar. I am just wondering, what are rectangular corrdinates? And how do you convert polar coordinates to rectangular coordinates? If anyone wouldn't mind, I would love an explanation. -Thanks

##### Share on other sites
Seeing as this is a homework assignment, we cannot "help" you. For Fruny will [flaming] us all to the void. But I suggest googling and trying out some equations and then coming back will difficulties in conversion.

edit: i will say this though: rectangular ?= cartesian.... or just ask your instructor to be sure [smile]

##### Share on other sites
Hmm, I see. Very well then, I guess I'll Google until my eyes are sore...

##### Share on other sites
<cough> mathworld.com </cough>

I hope that helped some.

• 17
• 11
• 11
• 9
• 49
• ### Forum Statistics

• Total Topics
631394
• Total Posts
2999754
×

## Important Information

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

Sign me up!