public void ToAxisAngle_Instance(QuaternionD quat, double4 expected) { var actual = quat.ToAxisAngle(); Assert.Equal(expected.x, actual.x, 6); Assert.Equal(expected.y, actual.y, 6); Assert.Equal(expected.z, actual.z, 6); Assert.Equal(expected.w, actual.w, 6); }
public void ToAxisAngle_Static(QuaternionD quat, double4 expected) { var actual = QuaternionD.ToAxisAngle(quat); Assert.Equal(expected.x, actual.x, 6); Assert.Equal(expected.y, actual.y, 6); Assert.Equal(expected.z, actual.z, 6); Assert.Equal(expected.w, actual.w, 6); }