forked from kscience/kmath
Add rotation coversion test for XYZ
This commit is contained in:
parent
3e9d28be31
commit
009f93adbb
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user