Convert the matrix returned from rightEyeTransform to Euler angles?

Hey guys Im trynna calculate the axis the eye is looking at on a 360 degree scale . Grabbed the matrix from Here https://developer.apple.com/documentation/arkit/arfaceanchor/2968193-righteyetransform now the next step is converting it into realistic and consistent figures, representative of the eyes angles. Thanks

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);
Convert the matrix returned from rightEyeTransform to Euler angles?
 
 
Q