| 58 |
|
* @class Quaternion Quaternion.hpp "math/Quaternion.hpp" |
| 59 |
|
* Quaternion is a sort of a higher-level complex number. |
| 60 |
|
* It is defined as Q = w + x*i + y*j + z*k, |
| 61 |
< |
* where w, x, y, and z are numbers of type T (e.g. double), and |
| 61 |
> |
* where w, x, y, and z are numbers of type T (e.g. RealType), and |
| 62 |
|
* i*i = -1; j*j = -1; k*k = -1; |
| 63 |
|
* i*j = k; j*k = i; k*i = j; |
| 64 |
|
*/ |
| 355 |
|
return equal(lhs[0] ,rhs[0]) && equal(lhs[1] , rhs[1]) && equal(lhs[2], rhs[2]) && equal(lhs[3], rhs[3]); |
| 356 |
|
} |
| 357 |
|
|
| 358 |
< |
typedef Quaternion<double> Quat4d; |
| 358 |
> |
typedef Quaternion<RealType> Quat4d; |
| 359 |
|
} |
| 360 |
|
#endif //MATH_QUATERNION_HPP |