Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Visibility{T}"/> class with the specified
        /// two-dimensional graph.</summary>
        /// <param name="graph">
        /// The <see cref="IGraph2D{T}"/> on which all searches are performed.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="graph"/> is a null reference.</exception>

        public Visibility(IGraph2D <T> graph)
        {
            if (graph == null)
            {
                ThrowHelper.ThrowArgumentNullException("graph");
            }

            Graph = graph;
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FloodFill{T}"/> class with the specified
        /// two-dimensional graph.</summary>
        /// <param name="graph">
        /// The <see cref="IGraph2D{T}"/> on which all searches are performed.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="graph"/> is a null reference.</exception>

        public FloodFill(IGraph2D <T> graph)
        {
            if (graph == null)
            {
                ThrowHelper.ThrowArgumentNullException("graph");
            }

            Graph = graph;
        }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Coverage{T}"/> class with the specified
        /// two-dimensional graph.</summary>
        /// <param name="graph">
        /// The <see cref="IGraph2D{T}"/> on which all searches are performed.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="graph"/> is a null reference.</exception>

        public Coverage(IGraph2D <T> graph)
        {
            if (graph == null)
            {
                ThrowHelper.ThrowArgumentNullException("graph");
            }

            Graph = graph;
        }