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

Method asQuatF

Engine/source/math/mRotation.cpp:283–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283QuatF 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
301void RotationF::normalize()
302{

Callers 1

interpolateMethod · 0.80

Calls 2

Point3FClass · 0.70
setMethod · 0.45

Tested by

no test coverage detected