Search found 1 match

by tejaswigowda
Mon Nov 07, 2022 8:49 pm
Forum: OptiTrack Data Streaming
Topic: Rotation around arbitrary axes - wrong Euler angles
Replies: 3
Views: 9739

Re: Rotation around arbitrary axes - wrong Euler angles

Can you please provide a python example? This working for python sdk: /* Convert matrix to Euler angles (in radians). */ EulerAngles Eul_FromHMatrix(HMatrix M, int order) { EulerAngles ea; int i,j,k,h,n,s,f; EulGetOrd(order,i,j,k,h,n,s,f); if (s==EulRepYes) { double sy = sqrt(M [j]*M [j] + M [k]*M [...