MCPcopy Create free account
hub / github.com/PhoneVR-Developers/PhoneVR / PVRMat34ToQuat

Function PVRMat34ToQuat

code/windows/PhoneVR/PhoneVR/PVRMath.cpp:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38Quaternionf PVRMat34ToQuat(float (*mat)[3][4]) {
39 Matrix3f emat;
40 for (size_t x = 0; x < 3; x++)
41 for (size_t y = 0; y < 3; y++)
42 emat(x, y) = (*mat)[x][y];
43 return Quaternionf(emat);
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected