| 281 | } |
| 282 | |
| 283 | QuatF RotationF::asQuatF() const |
| 284 | { |
| 285 | QuatF returnQuat; |
| 286 | if (mRotationType == Euler) |
| 287 | { |
| 288 | returnQuat.set(EulerF(x, y, z)); |
| 289 | } |
| 290 | else |
| 291 | { |
| 292 | AngAxisF aa; |
| 293 | aa.set(Point3F(x, y, z), w); |
| 294 | |
| 295 | returnQuat.set(aa); |
| 296 | } |
| 297 | |
| 298 | return returnQuat; |
| 299 | } |
| 300 | |
| 301 | void RotationF::normalize() |
| 302 | { |
no test coverage detected