MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / fromEulerAngles

Method fromEulerAngles

src/mathematics/Quaternion.cpp:36–42  ·  view source on GitHub ↗

Return a quaternion constructed from Euler angles (in radians)

Source from the content-addressed store, hash-verified

34
35// Return a quaternion constructed from Euler angles (in radians)
36Quaternion Quaternion::fromEulerAngles(decimal angleX, decimal angleY, decimal angleZ) {
37
38 Quaternion quaternion;
39 quaternion.initWithEulerAngles(angleX, angleY, angleZ);
40
41 return quaternion;
42}
43
44
45// Return a quaternion constructed from Euler angles (in radians)

Callers

nothing calls this directly

Calls 1

initWithEulerAnglesMethod · 0.80

Tested by

no test coverage detected