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)); }
public void SetColumnException2() { Matrix22F m = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor); m.SetColumn(2, Vector2F.One); }