Ejemplo n.º 1
0
        public void TestQuaternion()
        {
            _sendBridgeStream.Write(new Quaternion(04f, 05f, 0.1f, 1.5f));
            var data = _sendBridgeStream.Encode();

            var receivePacket = new BridgeStream(data);
            var sendValue     = receivePacket.ReadQuaternion();

            Assert.AreEqual(04f, sendValue.x);
            Assert.AreEqual(05f, sendValue.y);
            Assert.AreEqual(0.1f, sendValue.z);
            Assert.AreEqual(1.5f, sendValue.w);
        }