[Quaternion to Euler Angles]
-
wrote on 25 Mar 2022, 14:03 last edited by
Hey,
I tried to convert a quaternion to Euler angle using: void QQuaternion::getEulerAngles(float *pitch, float *yaw, float *roll) const
However, I got this error: cannot initialize a parameter of type 'float *' with an lvalue of type 'float'
This is the code line: quaternion.getEulerAngles(pitch,yaw,roll).
Can you please help me ?
-
Hey,
I tried to convert a quaternion to Euler angle using: void QQuaternion::getEulerAngles(float *pitch, float *yaw, float *roll) const
However, I got this error: cannot initialize a parameter of type 'float *' with an lvalue of type 'float'
This is the code line: quaternion.getEulerAngles(pitch,yaw,roll).
Can you please help me ?
wrote on 25 Mar 2022, 14:08 last edited by@Erija said in [Quaternion to Euler Angles]:
cannot initialize a parameter of type 'float *' with an lvalue of type 'float'
Method expects pointers to float, you gave it just float.
-
wrote on 25 Mar 2022, 14:46 last edited by
I gave it a pointer and still get an error: expected '(' for function-style cast or type construction. :((
-
I gave it a pointer and still get an error: expected '(' for function-style cast or type construction. :((
-
wrote on 25 Mar 2022, 14:58 last edited by
okay,
Here it is;
quaternion.getEulerAngles(float *pitch,float *yaw,float *roll); -
wrote on 28 Mar 2022, 16:13 last edited by
Thank you all.
Problem solved.
1/7