Math: added comment on quaternion constructor

This commit is contained in:
Andrew Tridgell 2012-03-05 15:07:45 +11:00
parent f5e6dc0757
commit 1ec4c0777c
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ class Quaternion
public:
float q1, q2, q3, q4;
// constructor
// constructor creates a quaternion equivalent
// to roll=0, pitch=0, yaw=0
Quaternion() { q1 = 1; q2 = q3 = q4 = 0; }
// setting constructor