public MatrixRotateController(IMatrixOperation matrixOperation)
 {
     _matrixOperation = matrixOperation;
 }
示例#2
0
        public static IEnumerable <Matrix> ApplyOperation(this IEnumerable <Matrix> source, IMatrixOperation operation)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            if (operation == null)
            {
                throw new ArgumentNullException(nameof(operation));
            }

            return(operation.Apply(source));
        }