Example #1
0
        public void ToVectorF()
        {
            Vector4F v  = new Vector4F(1.1f, 2.2f, 3.3f, 4.4f);
            VectorF  v2 = v.ToVectorF();

            Assert.AreEqual(4, v2.NumberOfElements);
            Assert.AreEqual(1.1f, v2[0]);
            Assert.AreEqual(2.2f, v2[1]);
            Assert.AreEqual(3.3f, v2[2]);
            Assert.AreEqual(4.4f, v2[3]);
        }
Example #2
0
        public void ToVectorF()
        {
            Vector4F v = new Vector4F(1.1f, 2.2f, 3.3f, 4.4f);
              VectorF v2 = v.ToVectorF();

              Assert.AreEqual(4, v2.NumberOfElements);
              Assert.AreEqual(1.1f, v2[0]);
              Assert.AreEqual(2.2f, v2[1]);
              Assert.AreEqual(3.3f, v2[2]);
              Assert.AreEqual(4.4f, v2[3]);
        }