MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / asQuatF

Method asQuatF

Engine/source/math/mRotation.cpp:268–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268QuatF 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
286void RotationF::normalize()
287{

Callers 2

unpackUpdateMethod · 0.80
interpolateMethod · 0.80

Calls 2

Point3FClass · 0.70
setMethod · 0.45

Tested by

no test coverage detected