hej carl
firstofall, it might sound a bit patronizing, but there are quite a lot of really cool vector libraries out there. why not use one of them and spend your time on other things ;)
but if you really want to get your hands dirty, which i always understand, you should read this document:
The Matrix and Quaternions FAQmost of what i know about linear algebra i learned from this one. you should definitely read about matrices and even quaternions.
Carl_Email wrote on Feb 12th, 2007, 9:12pm:Vect3 tmpVect = new Vect3( 4, 9, 2 );
print( tmpVect.angleX() + ", ");
print( tmpVect.angleY() + ", ");
print( tmpVect.angleZ() );
the misconception with your question is that there is no single direct relation between euler angels and vectors. it is called the
gimbal lock. in other words, the order in which you apply angles matters very much.
but if you just want to find the rotation of single components you can always use the 'atan2' method. but that s probably not what you where asking for.
cheers
d3