adding csharp port of python code to convert from R to Euler ZXY