public void SetRow() { Matrix33F m = new Matrix33F(columnMajor, MatrixOrder.ColumnMajor); m.SetRow(0, new Vector3F(0.1f, 0.2f, 0.3f)); Assert.AreEqual(new Vector3F(0.1f, 0.2f, 0.3f), m.GetRow(0)); Assert.AreEqual(new Vector3F(4.0f, 5.0f, 6.0f), m.GetRow(1)); Assert.AreEqual(new Vector3F(7.0f, 8.0f, 9.0f), m.GetRow(2)); m.SetRow(1, new Vector3F(0.4f, 0.5f, 0.6f)); Assert.AreEqual(new Vector3F(0.1f, 0.2f, 0.3f), m.GetRow(0)); Assert.AreEqual(new Vector3F(0.4f, 0.5f, 0.6f), m.GetRow(1)); Assert.AreEqual(new Vector3F(7.0f, 8.0f, 9.0f), m.GetRow(2)); m.SetRow(2, new Vector3F(0.7f, 0.8f, 0.9f)); Assert.AreEqual(new Vector3F(0.1f, 0.2f, 0.3f), m.GetRow(0)); Assert.AreEqual(new Vector3F(0.4f, 0.5f, 0.6f), m.GetRow(1)); Assert.AreEqual(new Vector3F(0.7f, 0.8f, 0.9f), m.GetRow(2)); }
public void SetRowException2() { Matrix33F m = new Matrix33F(columnMajor, MatrixOrder.ColumnMajor); m.SetRow(3, Vector3F.One); }
public void SetRow() { Matrix33F m = new Matrix33F(columnMajor, MatrixOrder.ColumnMajor); m.SetRow(0, new Vector3F(0.1f, 0.2f, 0.3f)); Assert.AreEqual(new Vector3F(0.1f, 0.2f, 0.3f), m.GetRow(0)); Assert.AreEqual(new Vector3F(4.0f, 5.0f, 6.0f), m.GetRow(1)); Assert.AreEqual(new Vector3F(7.0f, 8.0f, 9.0f), m.GetRow(2)); m.SetRow(1, new Vector3F(0.4f, 0.5f, 0.6f)); Assert.AreEqual(new Vector3F(0.1f, 0.2f, 0.3f), m.GetRow(0)); Assert.AreEqual(new Vector3F(0.4f, 0.5f, 0.6f), m.GetRow(1)); Assert.AreEqual(new Vector3F(7.0f, 8.0f, 9.0f), m.GetRow(2)); m.SetRow(2, new Vector3F(0.7f, 0.8f, 0.9f)); Assert.AreEqual(new Vector3F(0.1f, 0.2f, 0.3f), m.GetRow(0)); Assert.AreEqual(new Vector3F(0.4f, 0.5f, 0.6f), m.GetRow(1)); Assert.AreEqual(new Vector3F(0.7f, 0.8f, 0.9f), m.GetRow(2)); }
public void SetRowException2() { Matrix33F m = new Matrix33F(columnMajor, MatrixOrder.ColumnMajor); m.SetRow(3, Vector3F.One); }