예제 #1
0
        public void SetColumn()
        {
            Matrix22F m = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor);

            m.SetColumn(0, new Vector2F(0.1f, 0.2f));
            Assert.AreEqual(new Vector2F(0.1f, 0.2f), m.GetColumn(0));
            Assert.AreEqual(new Vector2F(2.0f, 4.0f), m.GetColumn(1));

            m.SetColumn(1, new Vector2F(0.4f, 0.5f));
            Assert.AreEqual(new Vector2F(0.1f, 0.2f), m.GetColumn(0));
            Assert.AreEqual(new Vector2F(0.4f, 0.5f), m.GetColumn(1));
        }
예제 #2
0
        public void SetColumnException2()
        {
            Matrix22F m = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor);

            m.SetColumn(2, Vector2F.One);
        }
예제 #3
0
 public void SetColumnException2()
 {
     Matrix22F m = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor);
       m.SetColumn(2, Vector2F.One);
 }
예제 #4
0
        public void SetColumn()
        {
            Matrix22F m = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor);
              m.SetColumn(0, new Vector2F(0.1f, 0.2f));
              Assert.AreEqual(new Vector2F(0.1f, 0.2f), m.GetColumn(0));
              Assert.AreEqual(new Vector2F(2.0f, 4.0f), m.GetColumn(1));

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