Beispiel #1
0
        /// <summary>
        /// Checks whether two cedges are equal disregarding the direction of the cedges
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(CAtBd other)
        {
            IPointCollection4 pThisCol = new PolylineClass();

            pThisCol = (IPointCollection4)this.pPolyline;

            IPointCollection4 potherCol = new PolylineClass();

            potherCol = (IPointCollection4)other.pPolyline;

            if (pThisCol.PointCount != potherCol.PointCount)
            {
                return(false);
            }


            bool blnEqual = true;

            for (int i = 0; i < pThisCol.PointCount; i++)
            {
                if ((pThisCol.get_Point(i).X != potherCol.get_Point(i).X) || (pThisCol.get_Point(i).Y != potherCol.get_Point(i).Y))
                {
                    blnEqual = false;
                    break;
                }
            }
            return(blnEqual);
        }
Beispiel #2
0
 public CCorrAtBdInfo(CAtBd CorrAtBd, double pdblOverlapRatio, double pdblOverlapArea)
 {
     _pCorrAtBd       = CorrAtBd;
     _dblOverlapRatio = pdblOverlapRatio;
     _dblOverlapArea  = pdblOverlapArea;
 }