Go to the source code of this file.
Functions | |
| double | abs (const quat &q) |
| double | norm (const quat &q) |
| quat | normal (const quat &q) |
| quat | inv (const quat &q) |
|
|
return abs Definition at line 18 of file quat-calc.hpp. Referenced by normal().
|
|
|
return norm Definition at line 25 of file quat-calc.hpp. Referenced by inv().
|
|
|
return the normalized quat Definition at line 32 of file quat-calc.hpp. References abs(). Referenced by vt2q(). 00033 {
00034 double abs_q(abs(q));
00035 return quat( q.x/abs_q, q.y/abs_q, q.z/abs_q, q.r/abs_q );
00036 }
|
|
|
return the inverse quat Definition at line 44 of file quat-calc.hpp. References conj(), and norm().
|
1.4.1