Beispiel #1
0
        public void Multiply2()
        {
            var cframe1  = CFrame.FromEulerAngles((float)Math.PI / 2, 0, 0);
            var cframe2  = new CFrame(2, 4, 6);
            var expected = new CFrame(new Vector3(2, -6, 3.99999976f), new Matrix3((float)1, (float)0, (float)0, (float)0, (float)-4.37113883e-008, (float)-1, (float)0, (float)1, (float)-4.37113883e-008));

            var product = cframe1 * cframe2;

            Assert.AreEqual(expected, product);
        }
Beispiel #2
0
        public void Multiply()
        {
            var cframe1  = CFrame.FromEulerAngles((float)Math.PI, 0, 0);
            var cframe2  = new CFrame(1, 2, 3);
            var expected = new CFrame(new Vector3(1, -1.99999976f, -3.00000024f), new Matrix3((float)1, (float)0, (float)0, (float)0, (float)-1, (float)8.74227766e-008, (float)0, (float)-8.74227766e-008, (float)-1));

            var product = cframe1 * cframe2;

            Assert.AreEqual(expected, product);
        }