Add rotation coversion test for XYZ

This commit is contained in:
Alexander Nozik 2023-06-08 09:28:26 +03:00
parent 3e9d28be31
commit 009f93adbb

View File

@ -44,7 +44,9 @@ class RotationTest {
@Test
fun fromEuler() {
val q = Quaternion.fromEuler(0.1.radians, 0.2.radians, 0.3.radians, RotationOrder.ZXY)
assertBufferEquals(DoubleBuffer(0.9818562, 0.0342708, 0.1060205, 0.1534393), q)
val q1 = Quaternion.fromEuler(0.1.radians, 0.2.radians, 0.3.radians, RotationOrder.XYZ)
assertBufferEquals(DoubleBuffer(0.9818562, 0.0640713, 0.0911575, 0.1534393), q1)
}
}