Maybe see if this gives you the correct results: https://stackoverflow.com/questions/50236214/arkit-eulerangles-of-transform-matrix-4x4
If you just want an Apple API that does it, you could do it with a SceneKit node:
SCNNode *temporaryNode = [SCNNode node];
temporaryNode.simdTransform = rightEyeTransform;
SCNVector3 euler = temporaryNode.eulerAngles;
NSLog(@"%f %f %f", euler.x, euler.y, euler.z);
Topic:
Spatial Computing
SubTopic:
ARKit
Tags: