Angles in 3D?
I was wondering in normal 2D space you only use 360 degrees. Is there some thing differn''t that you use for 3D space? Mainly cuz if 360 degrees in a circle how many degrees are within a circle?!? I was also wondering in 2D you can use atan2 to calculate the degrees of a x,y coordinate how would calculate the degrees within 3D space? Instead of x,y using atan2 what would you use for x,y,z ? Any help would be appricated.
Don''t click me!
Killer Eagle Software
There are various ways of representing rotations in 3D space, with the two most popular ones being quaternions and euler angles.
But, when it comes to angles, perhaps it would be better to think of an angle between two directions as being a 2D angle in a flat 3D plane.
The best advice i can think of giving is for you to pick up a book like 3D Maths Primer or Mathematics for 3d game programming and computer graphics. there are also a whole bunch of tutorials online that can give you all the information you need...
i hope i''ve helped
-j0nnii
But, when it comes to angles, perhaps it would be better to think of an angle between two directions as being a 2D angle in a flat 3D plane.
The best advice i can think of giving is for you to pick up a book like 3D Maths Primer or Mathematics for 3d game programming and computer graphics. there are also a whole bunch of tutorials online that can give you all the information you need...
i hope i''ve helped
-j0nnii
-jonnii=========jon@voodooextreme.comwww.voodooextreme.com
Just to reiterate a bit, in 2D you only have plane, so when you think of 360°, it''s really a "duh" thing. However in 3D, you now have space. Yet degrees is really a plane thing. So what you have to do is either use Euler angles, which uses the fundamental planes XY, XZ, and YZ to store 3 different angles of rotation, or you use Quanternions, which has an axis of rotation and an angle.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement