Ejemplo n.º 1
0
        public void Vector2HalfTest()
        {
            Vector2 value = new Vector2((float)Math.PI, 48.13f);

            stream.Skip(1);
            stream.WriteVector2Half(value);

            Assert.AreEqual(33, stream.BitOffset);
            stream.ResetRead();
            stream.Skip(1);

            AreSimilar(value, stream.ReadVector2Half(), 0.01f);
            Assert.AreEqual(33, stream.BitOffset);
        }