**Title:** Front-Facing Camera Rotation Matrix in ARKit: Consistency, Transformations, and `ARFrame.camera` Alignment

I'm seeking detailed information about the rotation matrix of the iPhone's front-facing (selfie) camera when using ARKit.

Specifically, I need to understand:

  1. The exact rotation matrix applied to the front-facing camera's output in ARKit.

  2. Whether this matrix is consistent across all iPhone models or if there are variations.

  3. If there are any transformations applied to align the camera's coordinate system with the device's orientation, particularly in portrait mode.

  4. How this rotation matrix relates to the transform property of `ARFrame.camera

**Title:** Front-Facing Camera Rotation Matrix in ARKit: Consistency, Transformations, and `ARFrame.camera` Alignment
 
 
Q