[Quaternion to Euler Angles]
-
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 ?
-
I gave it a pointer and still get an error: expected '(' for function-style cast or type construction. :((