shouldUse321RotationSequence(const Dcmf& R)

This commit is contained in:
Kamil Ritz
2020-08-15 13:43:55 +02:00
committed by Paul Riseborough
parent 4872f2a545
commit 15afa8ae17
5 changed files with 10 additions and 5 deletions
+4
View File
@@ -58,3 +58,7 @@ matrix::Dcmf quatToInverseRotMat(const matrix::Quatf &quat)
return dcm;
}
bool shouldUse321RotationSequence(const matrix::Dcmf& R) {
return fabsf(R(2, 0)) < fabsf(R(2, 1));
}