예제 #1
0
        public void Conjugate_Static()
        {
            var quat = new QuaternionD(1, 2, 3, 4);

            var actual = QuaternionD.Conjugate(quat);

            Assert.Equal(new QuaternionD(-1, -2, -3, 4), actual);
        }
예제 #2
0
        public void Conjugate_Instance()
        {
            var quat = new QuaternionD(1, 2, 3, 4);

            var actual = quat.Conjugate();

            Assert.Equal(new QuaternionD(-1, -2, -3, 4), actual);
        }