public void ToList() { Matrix33F m = new Matrix33F(1, 2, 3, 4, 5, 6, 7, 8, 9); IList <float> list = m.ToList(MatrixOrder.RowMajor); for (int i = 0; i < 9; i++) { Assert.AreEqual(rowMajor[i], list[i]); } list = m.ToList(MatrixOrder.ColumnMajor); for (int i = 0; i < 9; i++) { Assert.AreEqual(columnMajor[i], list[i]); } }
public void ToList() { Matrix33F m = new Matrix33F(1, 2, 3, 4, 5, 6, 7, 8, 9); IList<float> list = m.ToList(MatrixOrder.RowMajor); for (int i = 0; i < 9; i++) Assert.AreEqual(rowMajor[i], list[i]); list = m.ToList(MatrixOrder.ColumnMajor); for (int i = 0; i < 9; i++) Assert.AreEqual(columnMajor[i], list[i]); }