diff --git a/example/WiiMoteOpenGLDemo/rotation.c b/example/WiiMoteOpenGLDemo/rotation.c index 1a4205f91..decb2e280 100644 --- a/example/WiiMoteOpenGLDemo/rotation.c +++ b/example/WiiMoteOpenGLDemo/rotation.c @@ -154,8 +154,8 @@ void getRotationMatrixFromVectors(float vin[3], float vout[3], float matrix[4][4 getRotationMatrixFromQuartenion(q,matrix); } -void getRotationAngle(float matrix[4][4], float angle){ - angle = acos( (matrix[0][0]+matrix[1][1]+matrix[2][2]-1) * 0.5); +float getRotationAngle(float matrix[4][4]){ + return acos( (matrix[0][0]+matrix[1][1]+matrix[2][2]-1) * 0.5); } #if 0