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

Method set

Engine/source/math/mRotation.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void RotationF::set(EulerF _euler, UnitFormat format)
45{
46 x = format == Degrees ? mDegToRad(_euler.x) : _euler.x;
47 y = format == Degrees ? mDegToRad(_euler.y) : _euler.y;
48 z = format == Degrees ? mDegToRad(_euler.z) : _euler.z;
49
50 mRotationType = Euler;
51}
52
53void RotationF::set(F32 _x, F32 _y, F32 _z, UnitFormat format)
54{

Callers 6

lookAtMethod · 0.45
asAxisAngleMethod · 0.45
asMatrixFMethod · 0.45
asQuatFMethod · 0.45
normalizeMethod · 0.45
mRotation.cppFile · 0.45

Calls 3

mDegToRadFunction · 0.85
toEulerMethod · 0.80
setFunction · 0.50

Tested by

no test coverage detected