mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-15 21:40:22 +00:00
return rotation angle
This commit is contained in:
parent
122fb60270
commit
27b69f0643
@ -154,8 +154,8 @@ void getRotationMatrixFromVectors(float vin[3], float vout[3], float matrix[4][4
|
|||||||
getRotationMatrixFromQuartenion(q,matrix);
|
getRotationMatrixFromQuartenion(q,matrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
void getRotationAngle(float matrix[4][4], float angle){
|
float getRotationAngle(float matrix[4][4]){
|
||||||
angle = acos( (matrix[0][0]+matrix[1][1]+matrix[2][2]-1) * 0.5);
|
return acos( (matrix[0][0]+matrix[1][1]+matrix[2][2]-1) * 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user