Accord.Math.Matrix3x3.CreateFromColumns C# (CSharp) Méthode

CreateFromColumns() public static méthode

Creates a matrix from 3 columns specified as vectors.
public static CreateFromColumns ( Vector3 column0, Vector3 column1, Vector3 column2 ) : Matrix3x3
column0 Vector3 First column of the matrix to create.
column1 Vector3 Second column of the matrix to create.
column2 Vector3 Third column of the matrix to create.
Résultat Matrix3x3
        public static Matrix3x3 CreateFromColumns( Vector3 column0, Vector3 column1, Vector3 column2 )
        {
            Matrix3x3 m = new Matrix3x3( );

            m.V00 = column0.X;
            m.V10 = column0.Y;
            m.V20 = column0.Z;

            m.V01 = column1.X;
            m.V11 = column1.Y;
            m.V21 = column1.Z;

            m.V02 = column2.X;
            m.V12 = column2.Y;
            m.V22 = column2.Z;

            return m;
        }