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