Content deleted Content added
→Source code: add precision, there was sign errors for x and y Tag: Reverted |
Ebernardes (talk | contribs) |
||
Line 166:
};
Quaternion ToQuaternion(double roll, double pitch, double yaw) // roll (x), pitch (y), yaw (z)
{
// Abbreviations for the various angular functions
Line 179:
Quaternion q;
q.w = cr * cp * cy + sr * sp * sy;
q.x = sr * cp * cy
q.y = cr * sp * cy
q.z = cr * cp * sy - sr * sp * cy;
|