ZOS-API Batch mentioned in bulk polarization ray tracing,
Note that when reading back the ray trace data that the coordinates, direction cosines and electric field (exr, exi, eyr, eyi, ezr, ezi) are returned in the local coordinate system. To convert to global coordinates, you will need to use the GetGlobalMatrix() method of the ILensDataEditor interface to retrieve a matrix for conversion.
In other words, the results obtained by polarization ray tracing are in the local coordinate system. So what should I do if I want to obtain the electric field vector in the global coordinate system?