Esempio n. 1
0
        public void SetRow()
        {
            Matrix22F m = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor);

            m.SetRow(0, new Vector2F(0.1f, 0.2f));
            Assert.AreEqual(new Vector2F(0.1f, 0.2f), m.GetRow(0));
            Assert.AreEqual(new Vector2F(3.0f, 4.0f), m.GetRow(1));

            m.SetRow(1, new Vector2F(0.4f, 0.5f));
            Assert.AreEqual(new Vector2F(0.1f, 0.2f), m.GetRow(0));
            Assert.AreEqual(new Vector2F(0.4f, 0.5f), m.GetRow(1));
        }
Esempio n. 2
0
        public void SetRowException2()
        {
            Matrix22F m = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor);

            m.SetRow(2, Vector2F.One);
        }
Esempio n. 3
0
 public void SetRowException2()
 {
     Matrix22F m = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor);
       m.SetRow(2, Vector2F.One);
 }
Esempio n. 4
0
        public void SetRow()
        {
            Matrix22F m = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor);
              m.SetRow(0, new Vector2F(0.1f, 0.2f));
              Assert.AreEqual(new Vector2F(0.1f, 0.2f), m.GetRow(0));
              Assert.AreEqual(new Vector2F(3.0f, 4.0f), m.GetRow(1));

              m.SetRow(1, new Vector2F(0.4f, 0.5f));
              Assert.AreEqual(new Vector2F(0.1f, 0.2f), m.GetRow(0));
              Assert.AreEqual(new Vector2F(0.4f, 0.5f), m.GetRow(1));
        }