/// <summary>
        /// Makes a new <see cref="TransformManagerL2G"/> from a lambda matrix.
        /// </summary>
        /// <param name="lambdaMatrix">The λ Matrix.</param>
        /// <returns>new TransformManagerL2G</returns>
        public static TransformManagerL2G MakeFromLambdaMatrix(Matrix lambdaMatrix, MatrixPool pool = null)
        {
            var buf = new TransformManagerL2G();

            buf.LambdaMatrix = lambdaMatrix;

            buf.VeryMagicNumber = 1;

            buf.MatrixPool = pool == null ? new MatrixPool() : pool;

            return(buf);
        }
Exemple #2
0
 /// <summary>
 /// Initiates the matrix and array pools
 /// </summary>
 private void InitPool()
 {
     ArrayPool  = new ArrayPool <double>();
     MatrixPool = new MatrixPool(ArrayPool);
 }
        /// <summary>
        /// Makes a new <see cref="TransformManagerL2G"/> from a transformation matrix.
        /// </summary>
        /// <param name="transformMatrix">The T Matrix.</param>
        /// <returns>new TransformManagerL2G</returns>
        public static TransformManagerL2G MakeFromTransformationMatrix(Matrix transformMatrix, MatrixPool pool = null)
        {
            var buf = new TransformManagerL2G();

            buf.TransformMatrix = transformMatrix;
            buf.VeryMagicNumber = 2;

            buf.MatrixPool = pool == null ? new MatrixPool() : pool;

            return(buf);
        }