Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJames Page
9,621 Points"... the x, y and z values specify a unit vector to rotate around..."
What does that mean?!
'Unit vector' is mentioned several more times after that, but I don't remember hearing that term mentioned previously.
2 Answers
bleedcmyk
5,945 PointsI believe it is just referring to the axis of 3d space that you are rotating the object around. X-Axis, Y-Axis, Z-Axis.
James Page
9,621 PointsThe way I think I've understood them now is that, so far as rotate3D is concerned, they are 'on/off' switches for x, y and z axes in relation to the rotational angle.
'Unit vector' could be better explained, IMO, though.