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

Method asAxisAngle

Engine/source/math/mRotation.cpp:229–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229AngAxisF RotationF::asAxisAngle(UnitFormat format) const
230{
231 AngAxisF returnAA;
232
233 if (mRotationType == Euler)
234 {
235 returnAA.set(EulerF(x, y, z));
236 }
237 else
238 {
239 returnAA.set(Point3F(x, y, z), w);
240 }
241
242 if (format == Radians)
243 {
244 returnAA.angle = mDegToRad(returnAA.angle);
245 }
246
247 return returnAA;
248}
249
250MatrixF RotationF::asMatrixF() const
251{

Callers 2

mRotation.cppFile · 0.80
ConsoleGetTypeFunction · 0.80

Calls 3

mDegToRadFunction · 0.85
Point3FClass · 0.70
setMethod · 0.45

Tested by

no test coverage detected