/// <summary> This function can be overridden if the original chains are needed
        ///
        /// </summary>
        /// <param name="start1">
        /// the index of the start of the overlapping segment from mc1
        /// </param>
        /// <param name="start2">
        /// the index of the start of the overlapping segment from mc2
        /// </param>
        public virtual void Overlap(MonotoneChain mc1, int start1,
                                    MonotoneChain mc2, int start2)
        {
            mc1.GetLineSegment(start1, overlapSeg1);
            mc2.GetLineSegment(start2, overlapSeg2);

            Overlap(overlapSeg1, overlapSeg2);
        }
Exemplo n.º 2
0
 /// <summary> This function can be overridden if the original chain is needed</summary>
 public virtual void Select(MonotoneChain mc, int start)
 {
     mc.GetLineSegment(start, selectedSegment);
     Select(selectedSegment);
 }