public void SetColumn()
    {
      Matrix33D m = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
      m.SetColumn(0, new Vector3D(0.1, 0.2, 0.3));
      Assert.AreEqual(new Vector3D(0.1, 0.2, 0.3), m.GetColumn(0));
      Assert.AreEqual(new Vector3D(2.0, 5.0, 8.0), m.GetColumn(1));
      Assert.AreEqual(new Vector3D(3.0, 6.0, 9.0), m.GetColumn(2));

      m.SetColumn(1, new Vector3D(0.4, 0.5, 0.6));
      Assert.AreEqual(new Vector3D(0.1, 0.2, 0.3), m.GetColumn(0));
      Assert.AreEqual(new Vector3D(0.4, 0.5, 0.6), m.GetColumn(1));
      Assert.AreEqual(new Vector3D(3.0, 6.0, 9.0), m.GetColumn(2));

      m.SetColumn(2, new Vector3D(0.7, 0.8, 0.9));
      Assert.AreEqual(new Vector3D(0.1, 0.2, 0.3), m.GetColumn(0));
      Assert.AreEqual(new Vector3D(0.4, 0.5, 0.6), m.GetColumn(1));
      Assert.AreEqual(new Vector3D(0.7, 0.8, 0.9), m.GetColumn(2));
    }
 public void SetColumnException2()
 {
   Matrix33D m = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
   m.SetColumn(3, Vector3D.One);
 }
Exemple #3
0
 public void SetColumnException2()
 {
     Matrix33D m = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
       m.SetColumn(3, Vector3D.One);
 }
Exemple #4
0
        public void SetColumn()
        {
            Matrix33D m = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
              m.SetColumn(0, new Vector3D(0.1, 0.2, 0.3));
              Assert.AreEqual(new Vector3D(0.1, 0.2, 0.3), m.GetColumn(0));
              Assert.AreEqual(new Vector3D(2.0, 5.0, 8.0), m.GetColumn(1));
              Assert.AreEqual(new Vector3D(3.0, 6.0, 9.0), m.GetColumn(2));

              m.SetColumn(1, new Vector3D(0.4, 0.5, 0.6));
              Assert.AreEqual(new Vector3D(0.1, 0.2, 0.3), m.GetColumn(0));
              Assert.AreEqual(new Vector3D(0.4, 0.5, 0.6), m.GetColumn(1));
              Assert.AreEqual(new Vector3D(3.0, 6.0, 9.0), m.GetColumn(2));

              m.SetColumn(2, new Vector3D(0.7, 0.8, 0.9));
              Assert.AreEqual(new Vector3D(0.1, 0.2, 0.3), m.GetColumn(0));
              Assert.AreEqual(new Vector3D(0.4, 0.5, 0.6), m.GetColumn(1));
              Assert.AreEqual(new Vector3D(0.7, 0.8, 0.9), m.GetColumn(2));
        }