| 266 | } |
| 267 | |
| 268 | QuatF RotationF::asQuatF() const |
| 269 | { |
| 270 | QuatF returnQuat; |
| 271 | if (mRotationType == Euler) |
| 272 | { |
| 273 | returnQuat.set(EulerF(x, y, z)); |
| 274 | } |
| 275 | else |
| 276 | { |
| 277 | AngAxisF aa; |
| 278 | aa.set(Point3F(x, y, z), w); |
| 279 | |
| 280 | returnQuat.set(aa); |
| 281 | } |
| 282 | |
| 283 | return returnQuat; |
| 284 | } |
| 285 | |
| 286 | void RotationF::normalize() |
| 287 | { |
no test coverage detected