Go to the source code of this file.
Functions | |
| quat | operator+ (const quat &q1, const quat &q2) |
| quat | operator- (const quat &q1, const quat &q2) |
| quat | operator * (const quat &q1, const quat &q2) |
| quat | operator/ (const quat &q1, const quat &q2) |
|
||||||||||||
|
quat+quat operator Definition at line 61 of file quat-quat.hpp.
|
|
||||||||||||
|
quat-quat operator Definition at line 68 of file quat-quat.hpp.
|
|
||||||||||||
|
quat*quat operator Definition at line 75 of file quat-quat.hpp. 00076 {
00077 return quat(q1.r*q2.x +q1.x*q2.r +q1.y*q2.z -q1.z*q2.y,
00078 q1.r*q2.y -q1.x*q2.z +q1.y*q2.r +q1.z*q2.x,
00079 q1.r*q2.z +q1.x*q2.y -q2.x*q1.y +q1.z*q2.r,
00080 q1.r*q2.r -q1.x*q2.x -q1.y*q2.y -q1.z*q2.z );
00081 }
|
|
||||||||||||
|
quat/quat operator Definition at line 85 of file quat-quat.hpp. References inv(). 00086 {
00087 return q1*inv(q2);
00088 }
|
1.4.1