ABB Plane to Euler angles

Hi,

I have issue which is probably already solved for Euler angles for ABB.
I am trying to find convert Plane orientation to 3 numbers of Euler angles.

Does this method would help anyhow to do this?
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Transform_GetEulerZYZ.htm

I was thinking to transform XY plane to target plane and converting the transformation matrix to Euler angles.

Is this a correct way of doing this ?