Example #1
0
 public TriCircle(GeoTriangle Triangle)
 {
     this.Triangle = Triangle;
     this.Circle   = new GeoCircle(Triangle.P1,
                                   Triangle.P2,
                                   Triangle.P3);
     this.Neighbors = new List <TriCircle>();
 }
Example #2
0
        /// <summary>
        /// Compares two circles for equality.
        /// </summary>
        /// <param name="ICircle">A circle to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(GeoCircle Circle)
        {
            if ((Object)Circle == null)
            {
                return(false);
            }

            return(this.Center.Equals(Circle.Center) &&
                   this.Radius.Equals(Circle.Radius));
        }
Example #3
0
        /// <summary>
        /// Checks if the given circle shares some
        /// area with this circle.
        /// </summary>
        /// <param name="Circle">A circle of type T.</param>
        /// <returns>True if the circle shares some area with this circle; False otherwise.</returns>
        public Boolean Overlaps(GeoCircle Circle)
        {
            #region Initial Checks

            if (Circle == null)
            {
                throw new ArgumentNullException("The given circle must not be null!");
            }

            #endregion

            if (Center.DistanceTo(Circle.Center) <= Radius + Circle.Radius)
            {
                return(true);
            }

            return(true);
        }
Example #4
0
        /// <summary>
        /// Checks if the given circle shares some
        /// area with this circle.
        /// </summary>
        /// <param name="Circle">A circle of type T.</param>
        /// <returns>True if the circle shares some area with this circle; False otherwise.</returns>
        public Boolean Overlaps(GeoCircle Circle)
        {
            #region Initial Checks

            if (Circle == null)
                throw new ArgumentNullException("The given circle must not be null!");

            #endregion

            if (Center.DistanceTo(Circle.Center) <= Radius + Circle.Radius)
                return true;

            return true;
        }
Example #5
0
        /// <summary>
        /// Compares two circles for equality.
        /// </summary>
        /// <param name="ICircle">A circle to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(GeoCircle Circle)
        {
            if ((Object) Circle == null)
                return false;

            return this.Center.Equals(Circle.Center) &&
                   this.Radius.Equals(Circle.Radius);
        }
Example #6
0
 public TriCircle(GeoTriangle Triangle)
 {
     this.Triangle   = Triangle;
     this.Circle     = new GeoCircle(Triangle.P1,
                                     Triangle.P2,
                                     Triangle.P3);
     this.Neighbors  = new List<TriCircle>();
 }
Example #7
0
 public TriCircle(GeoTriangle Triangle, GeoCircle Circle)
 {
     this.Triangle   = Triangle;
     this.Circle     = Circle;
     this.Neighbors  = new List<TriCircle>();
 }
Example #8
0
 public TriCircle(GeoTriangle Triangle, GeoCircle Circle)
 {
     this.Triangle  = Triangle;
     this.Circle    = Circle;
     this.Neighbors = new List <TriCircle>();
 }