示例#1
0
        public void ToParentPosition()
        {
            var a = new SrtTransform(new Vector3F(1, 2, 7), new QuaternionF(1, 2, 3, 4).Normalized, new Vector3F(4, -5, 6));
            var v = new Vector3F(7, 9, -12);

            var result1 = a.ToParentPosition(v);
            var result2 = a.ToMatrix44F().TransformPosition(v);

            Assert.IsTrue(Vector3F.AreNumericallyEqual(result1, result2));
        }
示例#2
0
        public void ToParentPosition()
        {
            var a = new SrtTransform(new Vector3F(1, 2, 7), new QuaternionF(1, 2, 3, 4).Normalized, new Vector3F(4, -5, 6));
              var v = new Vector3F(7, 9, -12);

              var result1 = a.ToParentPosition(v);
              var result2 = a.ToMatrix44F().TransformPosition(v);
              Assert.IsTrue(Vector3F.AreNumericallyEqual(result1, result2));
        }