Accord.Tests.Math.Matrix3x3Test.ToArrayTest C# (CSharp) Method

ToArrayTest() private method

private ToArrayTest ( ) : void
return void
        public void ToArrayTest()
        {
            Matrix3x3 matrix = new Matrix3x3();

            matrix.V00 = 1;
            matrix.V01 = 2;
            matrix.V02 = 3;

            matrix.V10 = 4;
            matrix.V11 = 5;
            matrix.V12 = 6;

            matrix.V20 = 7;
            matrix.V21 = 8;
            matrix.V22 = 9;

            float[] array = matrix.ToArray();

            for (int i = 0; i < 9; i++)
            {
                Assert.AreEqual(array[i], (float)(i + 1));
            }
        }